feat(notifications) : add profile pictures and guide previews

This commit is contained in:
2026-10-12 23:58:58 +07:00 Unverified
parent 05350e7aab
commit 28517d9b29
10 changed files with 178 additions and 16 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ describe("guide publication notifications", () => {
expect(mocks.create.mock.calls[1]).toEqual([
[{ userId: "user-100", url: "/amber" }],
{ eventKey: `guide:${event.aggregateId}:published`, kind: "guide_published",
title: "เผยแพร่ Guide ใหม่", body: "อ่าน Guide Amber ได้แล้ว" },
title: "มีไกด์ใหม่แล้ว!", body: "คุณสามารถดูไกด์ Amber ได้แล้ว!" },
]);
const query = new PgDialect().sqlToQuery(mocks.filters[2] as Parameters<PgDialect["sqlToQuery"]>[0]);
expect(query.sql).toContain('"banned" is not true');