mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-17 18:05:42 +02:00
* 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>