1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-14 00:19:16 +01:00

fix: skipLocked when updating lastSeen for toggles

fixes: #795
This commit is contained in:
Ivar Conradi Østhus 2021-04-22 20:14:24 +02:00
parent f2de0aba65
commit 0f3b77367b
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## 3.17.5
- fix: skipLocked when updating lastSeen for toggles
## 3.17.4
- fix: version-checker must have instanceId

View File

@ -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);