Skip to content

Commit

Permalink
console: added notifications endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Feb 12, 2025
1 parent bf01dfa commit 10d9f67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapps/console/pages/api/admin/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ async function loadSyncStatusesChanges(
data: newBatch,
});
changeId = Number(r.id);
batches[key(newBatch.actorId)] = newBatch;
batches[key(newBatch.actorId)] = { ...batches[key(newBatch.actorId)], ...newBatch };
statusChanges++;
log.atInfo().log(`Sync ${batch.actorId} status changed from ${batch.status} to ${status}`);
}
Expand Down Expand Up @@ -355,7 +355,7 @@ async function sendSlackNotification(
type: "section",
text: {
type: "mrkdwn",
text: `${
text: `Last status: *${lastStatus.status}*\n${
lastStatus.tableName ? "Batch Table: *" + lastStatus.tableName + "*\n" : ""
}<${url}|Open in Jitsu...>`,
},
Expand Down

0 comments on commit 10d9f67

Please sign in to comment.