We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02aa4a1 commit 2a395bfCopy full SHA for 2a395bf
web/netlify/functions/update-settings.ts
@@ -67,7 +67,7 @@ const updateSettings = async (event) => {
67
68
// If the message is empty, delete the user record
69
if (email === "" && telegram === "") {
70
- const { error } = await supabase.from("users").delete().match({ address: lowerCaseAddress });
+ const { error } = await supabase.from("user-settings").delete().match({ address: lowerCaseAddress });
71
if (error) throw error;
72
return { statusCode: 200, body: JSON.stringify({ message: "Record deleted successfully." }) };
73
}
0 commit comments