fix: postgres type error
Fix a bug introduced in #8659. Solution was already tested there.
This commit is contained in:
parent
abd375d3d4
commit
2556d9209f
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue