Merge pull request #1492 from appwrite/fix-feedback-migration-form

Fix migration feedback form 400
This commit is contained in:
Ernst Mulders authored and GitHub committed 2024-11-07 15:09:14 +01:00
commit 9a2a946904
4 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -18,10 +18,10 @@
await feedback.submitFeedback(
`feedback-${$feedback.type}`,
$feedbackData.message,
$page.url.href,
$user.name,
$user.email,
$organization.billingPlan,
$page.url.href,
$feedbackData.value
);
addNotification({
+1 -1
View File
@@ -112,12 +112,12 @@ function createFeedbackStore() {
submitFeedback: async (
subject: string,
message: string,
currentPage: string,
name?: string,
email?: string,
// eslint-disable-next-line
// @ts-expect-error
billingPlan?: string,
currentPage?: string,
value?: number
) => {
if (!VARS.GROWTH_ENDPOINT) return;
@@ -1,4 +1,5 @@
<script lang="ts">
import { page } from '$app/stores';
import { Alert, Box, Modal } from '$lib/components';
import { Button, FormList, InputText, InputTextarea } from '$lib/elements/forms';
import { getFormData } from '$lib/helpers/form';
@@ -52,7 +53,7 @@
const { endpoint, feedback: message } = formData;
try {
await feedback.submitFeedback(`feedback-${$feedback.type}`, message);
await feedback.submitFeedback(`feedback-${$feedback.type}`, message, $page.url.href);
} catch (error) {
console.error(
'Feedback could not be submitted, but we continue to redirect to do export.'
@@ -18,10 +18,10 @@
await feedback.submitFeedback(
`feedback-${$feedback.type}`,
$feedbackData.message,
$page.url.href,
$user.name,
$user.email,
$organization.billingPlan,
$page.url.href,
$feedbackData.value
);
addNotification({