mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
fix: skipLocked when updating lastSeen for toggles
(second attempt) see: #795 for deatils.
This commit is contained in:
parent
b3d830617c
commit
15b1e5514f
@ -24,6 +24,10 @@
|
|||||||
- chore(deps): bump y18n from 4.0.0 to 4.0.1 (#775)
|
- chore(deps): bump y18n from 4.0.0 to 4.0.1 (#775)
|
||||||
- Feat: Api-Tokens (#774)
|
- Feat: Api-Tokens (#774)
|
||||||
|
|
||||||
|
## 3.17.6
|
||||||
|
|
||||||
|
- fix: skipLocked when updating lastSeen for toggles (second attempt)
|
||||||
|
|
||||||
## 3.17.5
|
## 3.17.5
|
||||||
|
|
||||||
- fix: skipLocked when updating lastSeen for toggles
|
- fix: skipLocked when updating lastSeen for toggles
|
||||||
|
@ -135,10 +135,15 @@ class FeatureToggleStore {
|
|||||||
const now = new Date();
|
const now = new Date();
|
||||||
try {
|
try {
|
||||||
await this.db(TABLE)
|
await this.db(TABLE)
|
||||||
.whereIn('name', toggleNames)
|
.update({ last_seen_at: now })
|
||||||
.forUpdate()
|
.whereIn(
|
||||||
.skipLocked()
|
'name',
|
||||||
.update({ last_seen_at: now });
|
this.db(TABLE)
|
||||||
|
.select('name')
|
||||||
|
.whereIn('name', toggleNames)
|
||||||
|
.forUpdate()
|
||||||
|
.skipLocked(),
|
||||||
|
);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.logger.error('Could not update lastSeen, error: ', err);
|
this.logger.error('Could not update lastSeen, error: ', err);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user