mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
fix(server): fix chunking Postgres query parameters (#22684)
This commit is contained in:
parent
29acf89979
commit
1a2a46014e
1 changed files with 2 additions and 2 deletions
|
|
@ -87,7 +87,7 @@ export function Chunked(
|
||||||
|
|
||||||
return Promise.all(
|
return Promise.all(
|
||||||
chunks(argument, chunkSize).map(async (chunk) => {
|
chunks(argument, chunkSize).map(async (chunk) => {
|
||||||
await Reflect.apply(originalMethod, this, [
|
return await Reflect.apply(originalMethod, this, [
|
||||||
...arguments_.slice(0, parameterIndex),
|
...arguments_.slice(0, parameterIndex),
|
||||||
chunk,
|
chunk,
|
||||||
...arguments_.slice(parameterIndex + 1),
|
...arguments_.slice(parameterIndex + 1),
|
||||||
|
|
@ -103,7 +103,7 @@ export function ChunkedArray(options?: { paramIndex?: number }): MethodDecorator
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ChunkedSet(options?: { paramIndex?: number }): MethodDecorator {
|
export function ChunkedSet(options?: { paramIndex?: number }): MethodDecorator {
|
||||||
return Chunked({ ...options, mergeFn: setUnion });
|
return Chunked({ ...options, mergeFn: (args: Set<any>[]) => setUnion(...args) });
|
||||||
}
|
}
|
||||||
|
|
||||||
const UUID = '00000000-0000-4000-a000-000000000000';
|
const UUID = '00000000-0000-4000-a000-000000000000';
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue