fix: postgres type error

Fix a bug introduced in . Solution was already tested there.
This commit is contained in:
Johann150 2022-05-15 11:32:00 +02:00
parent abd375d3d4
commit 2556d9209f

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();
} }