From 168c22fc9865256c3f49ed1e591da56fe8f88173 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 15 Apr 2019 23:00:39 +0900 Subject: [PATCH] Fix bug --- src/services/drive/add-file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/drive/add-file.ts b/src/services/drive/add-file.ts index c79dfee10..cdb1a6009 100644 --- a/src/services/drive/add-file.ts +++ b/src/services/drive/add-file.ts @@ -212,7 +212,7 @@ async function deleteOldFile(user: IRemoteUser) { q.andWhere('file.id != :bannerId', { bannerId: user.bannerId }); } - q.orderBy('file.id', 'DESC'); + q.orderBy('file.id', 'ASC'); const oldFile = await q.getOne();