fix: unable to save legacy surveys (#2280)

This commit is contained in:
Matti Nannt
2024-03-19 10:06:18 +01:00
committed by GitHub
parent 63708ec92b
commit 6c84850a7e
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { env } from "./env";
export const IS_FORMBRICKS_CLOUD = env.IS_FORMBRICKS_CLOUD === "1";
export const REVALIDATION_INTERVAL = 0; //TODO: find a good way to cache and revalidate data when it changes
export const SERVICES_REVALIDATION_INTERVAL = 60 * 30; // 30 minutes
export const SERVICES_REVALIDATION_INTERVAL = 60 * 60 * 3; // 3 hours
export const MAU_LIMIT = IS_FORMBRICKS_CLOUD ? 9000 : 1000000;
// URLs
+1 -1
View File
@@ -10,7 +10,7 @@ export const validateInputs = (...pairs: ValidationPair[]): void => {
if (!inputValidation.success) {
console.error(
`Validation failed for ${value} and ${JSON.stringify(schema)}: ${inputValidation.error.message}`
`Validation failed for ${JSON.stringify(value, null, 2)} and ${JSON.stringify(schema)}: ${inputValidation.error.message}`
);
throw new ValidationError("Validation failed");
}