core: optional host field

pull/568/head
undefined 1 year ago
parent 9c4df49949
commit c37dfd6df1
No known key found for this signature in database

@ -298,7 +298,7 @@ bus.on('ready', () => Promise.all([
bus.on('domain/delete-cache', async (domainId: string) => { bus.on('domain/delete-cache', async (domainId: string) => {
const ddoc = await DomainModel.get(domainId); const ddoc = await DomainModel.get(domainId);
if (!ddoc) return; if (!ddoc) return;
for (const host of ddoc.hosts) { for (const host of ddoc.hosts || []) {
cache.delete(`host::${host}`); cache.delete(`host::${host}`);
} }
cache.delete(`id::${domainId}`); cache.delete(`id::${domainId}`);

Loading…
Cancel
Save