cletus/node_modules/agenda/lib/job/save.ts
2025-05-09 15:53:19 -05:00

11 lines
261 B
TypeScript

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);
};