feat(notifications) : notify guide publications and admin hearts; simplify Stygian navigation
CI / Verify (push) Successful in 1m42s
CI / Build immutable images and deploy (push) Successful in 3m3s

This commit is contained in:
2026-10-08 04:04:02 +07:00 Unverified
parent b665fe7497
commit 72e9f525cc
8 changed files with 284 additions and 8 deletions
+6 -1
View File
@@ -10,6 +10,7 @@ import {
} from "@/lib/outbox/processor";
import { closeRedisClient, getRedisClient } from "@/lib/redis/client";
import { removeExpiredUnpaidCheckouts } from "@/lib/commission/cleanup";
import { sendGuidePublicationNotifications } from "@/lib/guides/notifications";
let stopping = false;
const stop = () => {
@@ -58,7 +59,11 @@ async function run(): Promise<void> {
await Promise.all(
events.map(async (event) => {
try {
await processOutboxEvent(event, transport);
if (event.eventType === "guide.published") {
await sendGuidePublicationNotifications(event);
} else {
await processOutboxEvent(event, transport);
}
await markOutboxProcessed(event.id);
} catch (cause) {
await releaseOutboxEvent(event.id, event.attempts, cause);