mongodb-cron icon indicating copy to clipboard operation
mongodb-cron copied to clipboard

Use typed MongoDB collection

Open gutnar opened this issue 2 years ago • 1 comments

  • 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.

gutnar avatar Jul 12 '22 08:07 gutnar

LGTM

xpepermint avatar Jul 12 '22 12:07 xpepermint