feat: implement BAP webhook configuration management and customer order tracking support

This commit is contained in:
Michael committed 2026-04-02 12:52:20 +02:00
1 parent 576db2d7f4
commit 55191c511b
6 files changed
+208 -21

No files matched your search

+3 -1
View File
@@ -1848,11 +1848,13 @@ export class DatabaseStorage implements IStorage {
}));
}
async markClientCalled(customerOrderId: number, calledBy: string): Promise<CustomerOrder> {
async markClientCalled(customerOrderId: number, calledBy: string, comment?: string): Promise<CustomerOrder> {
const [updated] = await db
.update(customerOrders)
.set({
customerNotified: true,
notifiedAt: new Date(),
notifiedComment: comment || null,
updatedAt: new Date()
})
.where(eq(customerOrders.id, customerOrderId))