oak-pay-business/lib/timers/index.js

33 lines
825 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const ship_1 = tslib_1.__importDefault(require("./ship"));
exports.default = [
...ship_1.default,
];
const timers = [
// {
// name: '示例timer',
// cron: '30 * * * * *',
// entity: 'extraFile',
// filter: {
// uploadState: 'uploading',
// },
// projection: {
// id: 1,
// uploadMeta: 1,
// uploadState: 1,
// entity: 1,
// entityId: 1,
// objectId: 1,
// },
// fn: async (context, data) => {
// console.log(
// '这是示例timer程序每30秒执行一次请在src/timer/index中关闭'
// );
// return context.opResult;
// },
// },
];
// export default timers;