fix: no dupes

This commit is contained in:
Saahil 2025-04-19 00:27:57 -04:00
parent b6ad96a79b
commit 9cc296db26
No known key found for this signature in database
GPG key ID: 8A8B64515254CFC6

View file

@ -131,6 +131,7 @@ export async function shipUpdatesCron(app: ModifiedApp) {
for (const update of updates) {
const entry = app.dbs.journey.get(update.project_id.toString());
if (!entry) continue;
if(entry.updates.find(e=>e.meta.created_at === update.created_at)) continue;
let msg = null;
try {
msg = await app.client.chat.postMessage({