feat: improve notifications - fix auth code tg duplicate, double order notify, add PAID label, expand text, add deliveryFeeAdjusted event
This commit is contained in:
@@ -190,6 +190,7 @@ export async function registerUserOrderRoutes(fastify) {
|
||||
userId,
|
||||
totalCents: created.totalCents,
|
||||
itemsCount: cartItems.length,
|
||||
deliveryType: created.deliveryType,
|
||||
});
|
||||
|
||||
// Also emit admin notification
|
||||
@@ -199,6 +200,7 @@ export async function registerUserOrderRoutes(fastify) {
|
||||
userEmail: request.user.email || "",
|
||||
totalCents: created.totalCents,
|
||||
itemsCount: cartItems.length,
|
||||
deliveryType: created.deliveryType,
|
||||
});
|
||||
|
||||
return reply.code(201).send({ orderId: created.id });
|
||||
|
||||
Reference in New Issue
Block a user