Skip to content

Commit 2a395bf

Browse files
committed
fix: table name
1 parent 02aa4a1 commit 2a395bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/netlify/functions/update-settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const updateSettings = async (event) => {
6767

6868
// If the message is empty, delete the user record
6969
if (email === "" && telegram === "") {
70-
const { error } = await supabase.from("users").delete().match({ address: lowerCaseAddress });
70+
const { error } = await supabase.from("user-settings").delete().match({ address: lowerCaseAddress });
7171
if (error) throw error;
7272
return { statusCode: 200, body: JSON.stringify({ message: "Record deleted successfully." }) };
7373
}

0 commit comments

Comments
 (0)