oak-pay-business/es/watchers/order.js

19 lines
396 B
JavaScript

const watchers = [
{
name: '使过期的order结束',
entity: 'order',
filter: () => {
const now = Date.now();
return {
iState: 'unpaid',
timeoutAt: {
$lte: now,
},
};
},
action: 'timeout',
actionData: {},
}
];
export default watchers;