fix: add menu role

This commit is contained in:
Chareice 2022-02-10 23:16:26 +08:00 committed by chenos
parent ac2b05f04c
commit 45453afa0a

View File

@ -7,7 +7,7 @@ export async function bindMenuToRole({ schemaInstance, db, options }) {
});
for (const role of addNewMenuRoles) {
await db.getRepository('roles.menuUiSchemas', role.get('name')).set({
await db.getRepository('roles.menuUiSchemas', role.get('name')).add({
tk: schemaInstance.get('uid'),
transaction,
});