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