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

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