21 lines
476 B
JavaScript
21 lines
476 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const watchers = [
|
|
{
|
|
name: '使过期的order结束',
|
|
entity: 'order',
|
|
filter: () => {
|
|
const now = Date.now();
|
|
return {
|
|
iState: 'unpaid',
|
|
timeoutAt: {
|
|
$lte: now,
|
|
},
|
|
};
|
|
},
|
|
action: 'timeout',
|
|
actionData: {},
|
|
}
|
|
];
|
|
exports.default = watchers;
|