26 lines
666 B
JavaScript
26 lines
666 B
JavaScript
"use strict";
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
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;
|
||
},
|
||
},
|
||
];
|
||
exports.default = timers;
|