Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use typed MongoDB collection #28

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

gutnar
Copy link
Contributor

@gutnar gutnar commented Jul 12, 2022

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

@xpepermint
Copy link
Owner

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants