mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
Merge pull request #16524 from supabase/fix/exit-action-for-exit-survey
Use provided exitAction param for exit survey mutation
This commit is contained in:
1 file changed
+2
-1
@@ -18,13 +18,14 @@ export async function sendDowngradeFeedback({
|
||||
orgSlug,
|
||||
reasons,
|
||||
message,
|
||||
exitAction,
|
||||
}: SendDowngradeFeedbackVariables) {
|
||||
const response = await post(`${API_URL}/feedback/downgrade`, {
|
||||
...(projectRef !== undefined && { projectRef }),
|
||||
...(orgSlug !== undefined && { orgSlug }),
|
||||
reasons,
|
||||
additionalFeedback: message,
|
||||
exitAction: 'downgrade',
|
||||
exitAction,
|
||||
})
|
||||
if (response.error) throw response.error
|
||||
return response
|
||||
|
||||
Reference in new issue
Block a user