mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-14 01:11:33 -06:00
fix: parse question text-content for GSheets header row (#6736)
Co-authored-by: Matti Nannt <matti@formbricks.com>
This commit is contained in:
@@ -7,6 +7,7 @@ import { TIntegrationNotion, TIntegrationNotionConfigData } from "@formbricks/ty
|
||||
import { TIntegrationSlack } from "@formbricks/types/integration/slack";
|
||||
import { TResponseMeta } from "@formbricks/types/responses";
|
||||
import { TSurvey, TSurveyQuestionTypeEnum } from "@formbricks/types/surveys/types";
|
||||
import { getTextContent } from "@formbricks/types/surveys/validation";
|
||||
import { TPipelineInput } from "@/app/api/(internal)/pipeline/types/pipelines";
|
||||
import { writeData as airtableWriteData } from "@/lib/airtable/service";
|
||||
import { NOTION_RICH_TEXT_LIMIT } from "@/lib/constants";
|
||||
@@ -275,7 +276,7 @@ const extractResponses = async (
|
||||
);
|
||||
questions.push(
|
||||
parseRecallInfo(
|
||||
getLocalizedValue(question?.headline, "default"),
|
||||
getTextContent(getLocalizedValue(question?.headline, "default")),
|
||||
integrationType === "slack" ? pipelineData.response.data : emptyResponseObject,
|
||||
integrationType === "slack" ? pipelineData.response.variables : {}
|
||||
) || ""
|
||||
|
||||
@@ -37,7 +37,7 @@ export const getFormattedDateTimeString = (date: Date): string => {
|
||||
hour: "2-digit",
|
||||
minute: "2-digit",
|
||||
second: "2-digit",
|
||||
hour12: false,
|
||||
hourCycle: "h23",
|
||||
};
|
||||
|
||||
return new Intl.DateTimeFormat("en-CA", options).format(date).replace(",", "");
|
||||
|
||||
Reference in New Issue
Block a user