mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-30 21:14:12 +00:00 
			
		
		
		
	fix comparison (thanks linter)
This commit is contained in:
		
							parent
							
								
									e9255d45f8
								
							
						
					
					
						commit
						4c409dd6c6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -144,7 +144,7 @@ export class CustomEmojiService implements OnApplicationShutdown { | ||||||
| 
 | 
 | ||||||
| 		if (data.driveFile != null) { | 		if (data.driveFile != null) { | ||||||
| 			const file = await this.driveFilesRepository.findOneBy({ url: emoji.originalUrl, userHost: emoji.host ? emoji.host : IsNull() }); | 			const file = await this.driveFilesRepository.findOneBy({ url: emoji.originalUrl, userHost: emoji.host ? emoji.host : IsNull() }); | ||||||
| 			if (file && file.id != data.driveFile.id) { | 			if (file && file.id !== data.driveFile.id) { | ||||||
| 				await this.driveService.deleteFile(file, false, moderator ? moderator : undefined); | 				await this.driveService.deleteFile(file, false, moderator ? moderator : undefined); | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue