fix: replace .single() with .maybeSingle() in SupabaseDB.get() to handle missing rows (#4599)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user