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

View File

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