mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: fix domain cache management
This commit is contained in:
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user