mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 16:28:19 +00:00
fix: no dupes
This commit is contained in:
parent
b6ad96a79b
commit
9cc296db26
1 changed files with 1 additions and 0 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue