Add global admin checks list and deepen check notification links.
Expose GET /admin/checks with order context, and point admin check alerts to the per-order checks page. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Vendored
+10
@@ -23,6 +23,9 @@ let ChecksController = class ChecksController {
|
||||
constructor(checksService) {
|
||||
this.checksService = checksService;
|
||||
}
|
||||
findAll(status) {
|
||||
return this.checksService.findAll(status);
|
||||
}
|
||||
findByOrder(orderId) {
|
||||
return this.checksService.findByOrder(orderId);
|
||||
}
|
||||
@@ -31,6 +34,13 @@ let ChecksController = class ChecksController {
|
||||
}
|
||||
};
|
||||
exports.ChecksController = ChecksController;
|
||||
__decorate([
|
||||
(0, common_1.Get)('admin/checks'),
|
||||
__param(0, (0, common_1.Query)('status')),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [String]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], ChecksController.prototype, "findAll", null);
|
||||
__decorate([
|
||||
(0, common_1.Get)('admin/orders/:orderId/checks'),
|
||||
__param(0, (0, common_1.Param)('orderId')),
|
||||
|
||||
Reference in New Issue
Block a user