fix: replace .single() with .maybeSingle() in SupabaseDB.get() to handle missing rows (#4599)

This commit is contained in:
Saharsh Patel
2026-04-01 09:11:24 -04:00
committed by GitHub
parent 8ae7a06220
commit 713dba5d0a
@@ -267,7 +267,7 @@ See the SQL migration instructions in the code comments.`,
.from(this.tableName)
.select("*")
.eq("id", vectorId)
.single();
.maybeSingle();
if (error) throw error;
if (!data) return null;