Browse Source

fix: clear shared base cache on update

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/764/head
Pranav C 3 years ago
parent
commit
87894648dd
  1. 4
      packages/nocodb/src/lib/noco/meta/NcMetaMgr.ts

4
packages/nocodb/src/lib/noco/meta/NcMetaMgr.ts

@ -3475,6 +3475,10 @@ export default class NcMetaMgr {
['id', 'shared_base_id', 'enabled', 'roles']
);
} else {
const cacheKey = `nc_shared_bases||${sharedBase.shared_base_id}`;
XcCache.del(cacheKey);
await this.xcMeta.metaUpdate(
this.getProjectId(args),
this.getDbAlias(args),

Loading…
Cancel
Save