Skip to content

Commit

Permalink
fix: fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jts04 committed Dec 27, 2023
1 parent f7ba9f6 commit e5f0179
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
8 changes: 3 additions & 5 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ async function run() {
found = await SyncModel.findOne({})
if (found.count == 0) {
clearInterval(intervalId)
found = await SyncModel.findOneAndUpdate({}, {count: found.count + 1}, {new: true})
await standardVersion(getConfiguration());
await SyncModel.findOneAndUpdate({}, {count: found.count - 1})
}
}, 1000);

found = await SyncModel.findOneAndUpdate({}, {count: found.count + 1})
await standardVersion(getConfiguration());
await SyncModel.findOneAndUpdate({}, {count: found.count - 1})

} catch (error) {
core.setFailed(error.stack);
}
Expand Down

0 comments on commit e5f0179

Please sign in to comment.