mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-26 19:00:22 -06:00
Exclude updatedAt field in survey update (#297)
This commit is contained in:
@@ -78,9 +78,11 @@ export default async function handle(req: NextApiRequest, res: NextApiResponse)
|
||||
surveyId,
|
||||
},
|
||||
});
|
||||
let data: any = { updatedAt: new Date() };
|
||||
let data: any = {};
|
||||
const body = { ...req.body };
|
||||
|
||||
delete body.updatedAt;
|
||||
|
||||
// delete unused fields for link surveys
|
||||
if (body.type === "link") {
|
||||
delete body.triggers;
|
||||
|
||||
Reference in New Issue
Block a user