Skip to content

Commit f208d26

Browse files
committed
fix incorrect query in server api endpoint get-names
1 parent dcce1e5 commit f208d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packages/server/accounts/get-name.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function rowsToNames(rows): Names {
4949
export async function getNames(account_ids: string[]): Promise<Names> {
5050
const pool = getPool("long");
5151
const { rows } = await pool.query(
52-
"SELECT account_id, first_name, last_name FROM accounts WHERE account_id=ANY($1::UUID[]) AND deleted IS NULL OR deleted = false",
52+
"SELECT account_id, first_name, last_name FROM accounts WHERE account_id=ANY($1::UUID[]) AND (deleted IS NULL OR deleted = false)",
5353
[account_ids],
5454
);
5555
return rowsToNames(rows);

0 commit comments

Comments
 (0)