mongodb-cron
mongodb-cron copied to clipboard
Use typed MongoDB collection
- added default
MongoCronJob
type which is exported so jobs can be created more comfortably using a typed collection - moved types to
types.ts
- changed base class to
MongoCron<T = MongoCronJob>
There are some places in cron.ts
that use as any
because the configuration allows overwriting the field names for the document type.
LGTM