Skip to content

Commit

Permalink
♻️refactor(Results): typing array on query
Browse files Browse the repository at this point in the history
  • Loading branch information
German Martinez committed Dec 16, 2024
1 parent f43a037 commit c12e5b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion onecgiar-pr-server/src/api/results/result.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,9 @@ WHERE
try {
const results = await this.query(
queryData,
([userid] as any[]).concat(initiativeCode ? [initiativeCode] : []),
([userid] as (string | number)[]).concat(
initiativeCode ? [initiativeCode] : [],
),
);
return results;
} catch (error) {
Expand Down

0 comments on commit c12e5b1

Please sign in to comment.