mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-05-23 15:42:28 -04:00
Fix request creation
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user