This commit is contained in:
Kegan Myers 2023-06-16 09:16:19 -05:00
parent dc70ca0e55
commit d71811068e

View file

@ -98,7 +98,9 @@ const announce = (containerId, announcements) => {
}; };
const retract = (containerId) => { 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 }); const astr = JSON.stringify({ type: `${type}/retract`, ...announcement });
ws.send(astr); ws.send(astr);
console.log(`${containerId.slice(0, 8)} retract: ${astr}`); console.log(`${containerId.slice(0, 8)} retract: ${astr}`);