fix: postgres type error

Fix a bug introduced in #8659. Solution was already tested there.
This commit is contained in:
Johann150 2022-05-15 11:32:00 +02:00
parent 504cf74b90
commit 037ca92275
No known key found for this signature in database
GPG Key ID: 9EE6577A2A06F8F1
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ export default define(meta, paramDef, async (ps, user) => {
userId: user.id, userId: user.id,
fileIds, fileIds,
}) })
.orderBy('array_position(ARRAY[:...fileIds], "id")') .orderBy('array_position(ARRAY[:...fileIds], "id"::text)')
.setParameters({ fileIds }) .setParameters({ fileIds })
.getMany(); .getMany();
} }