forked from FoundKeyGang/FoundKey
Fix bug
This commit is contained in:
parent
792ec23d7a
commit
168c22fc98
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ async function deleteOldFile(user: IRemoteUser) {
|
||||||
q.andWhere('file.id != :bannerId', { bannerId: user.bannerId });
|
q.andWhere('file.id != :bannerId', { bannerId: user.bannerId });
|
||||||
}
|
}
|
||||||
|
|
||||||
q.orderBy('file.id', 'DESC');
|
q.orderBy('file.id', 'ASC');
|
||||||
|
|
||||||
const oldFile = await q.getOne();
|
const oldFile = await q.getOne();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue