update CustomEmojiService.ts

update add-request.ts
update delete.ts
update DriveFileEntityService.ts
update update-request.ts
update update.ts

Signed-off-by: mattyatea <mattyacocacora0@gmail.com>
This commit is contained in:
mattyatea 2023-10-28 16:58:36 +09:00
parent 1a6f0026e6
commit 1ed0e7e8a3
No known key found for this signature in database
GPG key ID: 068E54E2C33BEF9A
6 changed files with 9 additions and 12 deletions

View file

@ -135,10 +135,7 @@ export class DriveFileEntityService {
}
@bindThis
public async getFromUrl(url: string): Promise<MiDriveFile | null> {
const file = await this.driveFilesRepository.findOneBy({ url: url });
if (file === null ) return null;
return file;
return this.driveFilesRepository.findOneBy({ url: url });
}
@bindThis
public async calcDriveUsageOf(user: MiUser['id'] | { id: MiUser['id'] }): Promise<number> {