Backend korrigiert, icons korrigiert, menü-aufklappen verbessert
This commit is contained in:
@@ -20,7 +20,8 @@ const menuStructure = {
|
||||
icon: "friends24.png"
|
||||
}
|
||||
},
|
||||
showLoggedinFriends: 1
|
||||
showLoggedinFriends: 1,
|
||||
icon: "friends24.png"
|
||||
},
|
||||
socialnetwork: {
|
||||
visible: ["all"],
|
||||
@@ -73,7 +74,7 @@ const menuStructure = {
|
||||
},
|
||||
falukant: {
|
||||
visible: ["all"],
|
||||
icon: "falukant24.png",
|
||||
icon: "falukant16.png",
|
||||
children: {
|
||||
create: {
|
||||
visible: ["nofalukantaccount"],
|
||||
@@ -135,11 +136,11 @@ const menuStructure = {
|
||||
},
|
||||
minigames: {
|
||||
visible: ["all"],
|
||||
icon: "minigames24.png",
|
||||
icon: "minigames16.png",
|
||||
},
|
||||
settings: {
|
||||
visible: ["all"],
|
||||
icon: "settings24.png",
|
||||
icon: "settings16.png",
|
||||
children: {
|
||||
homepage: {
|
||||
visible: ["all"],
|
||||
|
||||
@@ -16,7 +16,6 @@ export default function setupAssociations() {
|
||||
UserParamType.hasMany(UserParam, { foreignKey: 'paramTypeId', as: 'user_params' });
|
||||
UserParam.belongsTo(UserParamType, { foreignKey: 'paramTypeId', as: 'paramType' });
|
||||
|
||||
UserParam.belongsTo(SettingsType, { foreignKey: 'settingsId', as: 'settings' });
|
||||
UserParam.belongsTo(User, { foreignKey: 'userId', as: 'user' });
|
||||
|
||||
UserRight.belongsTo(User, { foreignKey: 'userId' });
|
||||
|
||||
@@ -63,3 +63,4 @@ const ContactMessage = sequelize.define('contact_message', {
|
||||
});
|
||||
|
||||
export default ContactMessage;
|
||||
|
||||
@@ -25,9 +25,8 @@ const initializeDatabase = async () => {
|
||||
};
|
||||
|
||||
const syncModels = async (models) => {
|
||||
// Nur einmaliges sync ohne alter/force
|
||||
for (const model of Object.values(models)) {
|
||||
await model.sync();
|
||||
await model.sync({ alter: true });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user