fix: postgres type error
Fix a bug introduced in #8659. Solution was already tested there.
This commit is contained in:
parent
504cf74b90
commit
037ca92275
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue