mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: skipLocked when updating lastSeen for toggles
This commit is contained in:
		
							parent
							
								
									18f66ef732
								
							
						
					
					
						commit
						b3d830617c
					
				@ -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.5
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- fix: skipLocked when updating lastSeen for toggles
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## 3.17.4
 | 
					## 3.17.4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- fix: version-checker must have instanceId
 | 
					- fix: version-checker must have instanceId
 | 
				
			||||||
 | 
				
			|||||||
@ -136,6 +136,8 @@ class FeatureToggleStore {
 | 
				
			|||||||
        try {
 | 
					        try {
 | 
				
			||||||
            await this.db(TABLE)
 | 
					            await this.db(TABLE)
 | 
				
			||||||
                .whereIn('name', toggleNames)
 | 
					                .whereIn('name', toggleNames)
 | 
				
			||||||
 | 
					                .forUpdate()
 | 
				
			||||||
 | 
					                .skipLocked()
 | 
				
			||||||
                .update({ last_seen_at: now });
 | 
					                .update({ last_seen_at: now });
 | 
				
			||||||
        } 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