fix #7
This commit is contained in:
parent
dc70ca0e55
commit
d71811068e
|
@ -98,7 +98,9 @@ const announce = (containerId, announcements) => {
|
|||
};
|
||||
|
||||
const retract = (containerId) => {
|
||||
for (const announcement of JSON.parse(cache.get(containerId) || '[]')) {
|
||||
for (const { type, ...announcement } of JSON.parse(
|
||||
cache.get(containerId) || '[]'
|
||||
)) {
|
||||
const astr = JSON.stringify({ type: `${type}/retract`, ...announcement });
|
||||
ws.send(astr);
|
||||
console.log(`${containerId.slice(0, 8)} retract: ${astr}`);
|
||||
|
|
Loading…
Reference in a new issue