mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-07 06:12:46 -05:00
fix: Backwards compatibility for js/sync endpoint (#2516)
This commit is contained in:
@@ -101,7 +101,9 @@ export const getUpdatedState = async (environmentId: string, personId?: string):
|
||||
surveys = await getSyncSurveys(environmentId, (person as TPerson).id);
|
||||
} else {
|
||||
surveys = await getSurveys(environmentId);
|
||||
surveys = surveys.filter((survey) => survey.type === "web" && survey.status === "inProgress");
|
||||
surveys = surveys.filter(
|
||||
(survey) => (survey.type === "app" || survey.type === "website") && survey.status === "inProgress"
|
||||
);
|
||||
}
|
||||
|
||||
surveys = transformLegacySurveys(surveys);
|
||||
|
||||
Reference in New Issue
Block a user