core: fix domain cache management

This commit is contained in:
undefined committed 2023-04-13 01:11:04 +08:00
1 parent aa044ee6d9
commit b5d51f3372
1 file changed
+1 -1
+1 -1
View File
@@ -102,7 +102,7 @@ class DomainModel {
const result = await coll.findOneAndUpdate({ lower: domainId }, { $set }, { returnDocument: 'after' });
if (result.value) {
await bus.parallel('domain/update', domainId, $set, result.value);
cache.delete(`id::${domainId}`);
bus.broadcast('domain/delete-cache', domainId);
}
return result.value;
}