Files
Yulian DiazandGitHub 66deebdf4e fix(account): handle empty $in array to prevent PostgreSQL IN () syntax error (#10554)
* fix(account): handle empty array in $in SQL clause to prevent PostgreSQL syntax error

buildWhereClause now emits FALSE for empty $in arrays instead of invalid
IN () syntax. Also adds an early return in getWorkspacesInfoWithStatusByIds
so callers like the GitHub/Gmail/Backup services never hit the query with
an empty uuid list.

Fixes #10553

Signed-off-by: Yulian Diaz <5605867+spatialy@users.noreply.github.com>

* fix(account): also guard against non-array uuids in getWorkspacesInfoWithStatusByIds

Per review feedback from @ArtyomSavchenko: use Array.isArray() in addition to
the length check to handle runtime cases where uuids may not be an array.

Signed-off-by: Yulian Diaz <5605867+spatialy@users.noreply.github.com>

---------

Signed-off-by: Yulian Diaz <5605867+spatialy@users.noreply.github.com>
2026-02-25 22:56:57 +07:00
..
2025-06-04 17:57:10 +05:00
2021-09-09 20:42:34 +02:00
2023-10-07 16:38:21 +06:00