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

more typings, minor functionality changes #2

Merged
merged 3 commits into from
Oct 20, 2020
Merged

more typings, minor functionality changes #2

merged 3 commits into from
Oct 20, 2020

Conversation

Uzlopak
Copy link
Contributor

@Uzlopak Uzlopak commented Oct 20, 2020

there are just a few functionality changes

Copy link
Contributor

@simllll simllll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice job! just one comment 👍

src/Job.ts Outdated Show resolved Hide resolved
async unlockJob(job) {
await this.collection.updateOne({ _id: job._id }, { $unset: { lockedAt: true } });
async unlockJob(job: Job): Promise<void> {
await this.collection.updateOne({ _id: job.attrs._id }, { $unset: { lockedAt: true } });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch, we should add a test to cover successful unlocking

Copy link
Contributor

@simllll simllll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@simllll simllll merged commit b13d054 into hokify:master Oct 20, 2020
@Uzlopak Uzlopak deleted the feature/0000-minor-refactoring branch October 20, 2020 17:31
MeySalehi pushed a commit to MeySalehi/agenda that referenced this pull request Jun 12, 2024
deps: update deps with `npm audit fix`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants