Skip to content

Commit

Permalink
fix: skipLocked when updating lastSeen for toggles
Browse files Browse the repository at this point in the history
fixes: #795
  • Loading branch information
ivarconr committed Apr 22, 2021
1 parent f2de0ab commit 0f3b773
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.17.5

- fix: skipLocked when updating lastSeen for toggles

## 3.17.4

- fix: version-checker must have instanceId
Expand Down
2 changes: 2 additions & 0 deletions src/lib/db/feature-toggle-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ class FeatureToggleStore {
try {
await this.db(TABLE)
.whereIn('name', togleNames)
.forUpdate()
.skipLocked()
.update({ last_seen_at: now });
} catch (err) {
this.logger.error('Could not update lastSeen, error: ', err);
Expand Down

0 comments on commit 0f3b773

Please sign in to comment.