Browse Source

refactor(nocodb): separate validatePayload and T.emit

pull/5269/head
Wing-Kam Wong 2 years ago
parent
commit
eac353df91
  1. 4
      packages/nocodb/src/lib/services/modelVisibility.svc.ts

4
packages/nocodb/src/lib/services/modelVisibility.svc.ts

@ -12,8 +12,8 @@ export async function xcVisibilityMetaSetAll(param: {
validatePayload( validatePayload(
'swagger.json#/components/schemas/VisibilityRuleReq', 'swagger.json#/components/schemas/VisibilityRuleReq',
param.visibilityRule param.visibilityRule
), );
T.emit('evt', { evt_type: 'uiAcl:updated' }); T.emit('evt', { evt_type: 'uiAcl:updated' });
for (const d of param.visibilityRule) { for (const d of param.visibilityRule) {
for (const role of Object.keys(d.disabled)) { for (const role of Object.keys(d.disabled)) {
const view = await View.get(d.id); const view = await View.get(d.id);

Loading…
Cancel
Save