feat: improve notifications - fix auth code tg duplicate, double order notify, add PAID label, expand text, add deliveryFeeAdjusted event
This commit is contained in:
@@ -192,6 +192,13 @@ export async function registerAdminOrderRoutes(fastify) {
|
||||
deliveryFeeLocked: true,
|
||||
},
|
||||
});
|
||||
|
||||
request.server.eventBus.emit(NOTIFICATION_EVENTS.DELIVERY_FEE_ADJUSTED, {
|
||||
orderId: updated.id,
|
||||
userId: existing.userId,
|
||||
totalCents: updated.totalCents,
|
||||
});
|
||||
|
||||
return { item: updated };
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user