Files
huly-platform/server
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-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00
2025-12-18 00:40:41 +05:00