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

+2 -3
View File
@@ -3352,9 +3352,8 @@ export async function registerRoutes(app: Express): Promise<Server> {
}
}
const updatedOrder = await storage.markClientCalled(id, user.id);
console.log(`📞 Client marked as called: order ${id} by user ${user.id} (${user.role})`);
const { comment } = req.body;
const updatedOrder = await storage.markClientCalled(id, user.id, comment);
res.json(updatedOrder);
} catch (error) {
console.error("Error marking client as called:", error);