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)
|
||||
.select("*")
|
||||
.eq("id", vectorId)
|
||||
.single();
|
||||
.maybeSingle();
|
||||
|
||||
if (error) throw error;
|
||||
if (!data) return null;
|
||||
|
||||
Reference in New Issue
Block a user