UNPKG

agenda

Version:

Light weight job scheduler for Node.js

12 lines (10 loc) 261 B
import { Job } from "."; /** * Saves a job into the MongoDB * @name Job# * @function * @returns instance of Job resolved after job is saved or errors */ export const save = async function (this: Job): Promise<Job> { return this.agenda.saveJob(this); };