agenda
Version:
Light weight job scheduler for Node.js
12 lines • 533 B
TypeScript
import { Filter } from "mongodb";
import { Agenda } from ".";
/**
* Enables any jobs matching the passed MongoDB query by setting the `disabled` flag to `false`
* @name Agenda#enable
* @function
* @param query MongoDB query to use when enabling
* @caller client code, Agenda.purge(), Job.remove()
* @returns {Promise<Number>} A promise that contains the number of removed documents when fulfilled.
*/
export declare const enable: (this: Agenda, query?: Filter<unknown>) => Promise<number>;
//# sourceMappingURL=enable.d.ts.map