|
|
@ -237,6 +237,7 @@ export default class Project implements ProjectType { |
|
|
|
let o = await NocoCache.get(key, CacheGetType.TYPE_OBJECT); |
|
|
|
let o = await NocoCache.get(key, CacheGetType.TYPE_OBJECT); |
|
|
|
if (o) { |
|
|
|
if (o) { |
|
|
|
// update data
|
|
|
|
// update data
|
|
|
|
|
|
|
|
// new uuid is generated
|
|
|
|
if (o.uuid && updateObj.uuid && o.uuid !== updateObj.uuid) { |
|
|
|
if (o.uuid && updateObj.uuid && o.uuid !== updateObj.uuid) { |
|
|
|
await NocoCache.del(`${CacheScope.PROJECT}:${o.uuid}`); |
|
|
|
await NocoCache.del(`${CacheScope.PROJECT}:${o.uuid}`); |
|
|
|
await NocoCache.set( |
|
|
|
await NocoCache.set( |
|
|
@ -244,6 +245,10 @@ export default class Project implements ProjectType { |
|
|
|
projectId |
|
|
|
projectId |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// disable shared base
|
|
|
|
|
|
|
|
if (o.uuid && updateObj.uuid === null) { |
|
|
|
|
|
|
|
await NocoCache.del(`${CacheScope.PROJECT}:${o.uuid}`); |
|
|
|
|
|
|
|
} |
|
|
|
if (o.title && updateObj.title && o.title !== updateObj.title) { |
|
|
|
if (o.title && updateObj.title && o.title !== updateObj.title) { |
|
|
|
await NocoCache.del(`${CacheScope.PROJECT}:${o.title}`); |
|
|
|
await NocoCache.del(`${CacheScope.PROJECT}:${o.title}`); |
|
|
|
await NocoCache.set( |
|
|
|
await NocoCache.set( |
|
|
|