合入主线登录和营业时段策略,对齐旧界面与 React 访问流程
This commit is contained in:
commit
42395de23a
113 files changed
+1915
-558
No files matched your search
@@ -8,7 +8,6 @@ const {
|
||||
exchangeCustomerPrintDocument,
|
||||
} = require('../../domains/printing/recovery-printing');
|
||||
const { HTML } = require('../http');
|
||||
const { readBody } = require('../middleware/body');
|
||||
|
||||
const STATUS = '/api/print-status/:kind(order|recovery)/:id(uuid)';
|
||||
|
||||
@@ -26,9 +25,9 @@ module.exports = [
|
||||
method: 'POST',
|
||||
path: STATUS,
|
||||
direct: true,
|
||||
handler: async ({ req, url, ledger, params: { kind, id }, actor }) => {
|
||||
handler: async ({ req, url, ledger, params: { kind, id }, actor, readBody }) => {
|
||||
PrintStatus.access(ledger, kind, id, actor);
|
||||
const body = await readBody(req);
|
||||
const body = await readBody();
|
||||
PrintStatus.access(ledger, kind, id, actor);
|
||||
return ledger.transact(
|
||||
req.headers['idempotency-key'],
|
||||
|
||||
Reference in new issue
Block a user