Fix request creation

This commit is contained in:
Zoe Roux
2025-05-14 10:44:16 +02:00
parent 2fc696dde9
commit a9b7d18a6e
6 changed files with 36 additions and 22 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ export const enqueueOptImage = async (
kind: "image",
message,
});
await tx.execute(sql`notify kyoo.image`);
await tx.execute(sql`notify kyoo_image`);
return {
id,
@@ -128,7 +128,7 @@ export const processImages = async () => {
const client = (await db.$client.connect()) as PoolClient;
client.on("notification", (evt) => {
if (evt.channel !== "kyoo.image") return;
if (evt.channel !== "kyoo_image") return;
processAll();
});
await client.query("listen image");