Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MrlolDev committed Jul 21, 2023
1 parent a5506b8 commit f149cc0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/routes/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,22 @@ router.get("/:c/:id", async (req: Request, res: Response) => {
},
})
);
await pub.send(
{
exchange: "messages:dev",
routingKey: "message",
},
JSON.stringify({
id: "update",
data: {
collection: "campaigns",
id: fullCampaign.id,
updates: {
stats: stats,
},
},
})
);
/*
await supabase
.from("campaigns_new")
Expand Down

0 comments on commit f149cc0

Please sign in to comment.