mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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' });
|
const result = await coll.findOneAndUpdate({ lower: domainId }, { $set }, { returnDocument: 'after' });
|
||||||
if (result.value) {
|
if (result.value) {
|
||||||
await bus.parallel('domain/update', domainId, $set, result.value);
|
await bus.parallel('domain/update', domainId, $set, result.value);
|
||||||
cache.delete(`id::${domainId}`);
|
bus.broadcast('domain/delete-cache', domainId);
|
||||||
}
|
}
|
||||||
return result.value;
|
return result.value;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user