refactor(backend): exist -> exists (#13203)

* refactor(backend): exist -> exists

* fix
This commit is contained in:
かっこかり 2024-02-08 16:04:41 +09:00 committed by GitHub
parent 90b633b5a6
commit 0f7918c51b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
40 changed files with 64 additions and 64 deletions

View file

@ -385,7 +385,7 @@ export class CustomEmojiService implements OnApplicationShutdown {
*/
@bindThis
public checkDuplicate(name: string): Promise<boolean> {
return this.emojisRepository.exist({ where: { name, host: IsNull() } });
return this.emojisRepository.exists({ where: { name, host: IsNull() } });
}
@bindThis