mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-18 12:59:25 -06:00
fix: remove unused description in createAttribute, updateSurvey to use params surveyId (#2515)
This commit is contained in:
committed by
GitHub
parent
0e6cfbfaa5
commit
7ca4aee9a7
@@ -67,7 +67,7 @@ export async function PUT(request: Request, { params }: { params: { surveyId: st
|
||||
transformErrorToDetails(inputValidation.error)
|
||||
);
|
||||
}
|
||||
return responses.successResponse(await updateSurvey(inputValidation.data));
|
||||
return responses.successResponse(await updateSurvey({ ...inputValidation.data, id: params.surveyId }));
|
||||
} catch (error) {
|
||||
return handleErrorResponse(error);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ export const ZAttributeClass = z.object({
|
||||
|
||||
export const ZAttributeClassInput = z.object({
|
||||
name: z.string(),
|
||||
description: z.string(),
|
||||
description: z.string().optional(),
|
||||
type: z.enum(["code"]),
|
||||
environmentId: z.string(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user