mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-17 11:31:09 -05:00
fix: data migration and product types
This commit is contained in:
@@ -47,7 +47,6 @@ async function main() {
|
||||
...(product.highlightBorderColor && {
|
||||
highlightBorderColor: {
|
||||
light: product.highlightBorderColor,
|
||||
dark: product.highlightBorderColor,
|
||||
},
|
||||
}),
|
||||
};
|
||||
|
||||
@@ -34,6 +34,9 @@ const selectProduct = {
|
||||
clickOutsideClose: true,
|
||||
darkOverlay: true,
|
||||
environments: true,
|
||||
styling: true,
|
||||
unifiedStyling: true,
|
||||
allowStyleOverwrite: true,
|
||||
};
|
||||
|
||||
export const getProducts = async (teamId: string, page?: number): Promise<TProduct[]> => {
|
||||
|
||||
@@ -12,7 +12,9 @@ export const ZProduct = z.object({
|
||||
teamId: z.string(),
|
||||
brandColor: ZColor,
|
||||
highlightBorderColor: ZColor.nullable(),
|
||||
styling: ZStyling.optional(),
|
||||
styling: ZStyling.nullable(),
|
||||
unifiedStyling: z.boolean().nullable(),
|
||||
allowStyleOverwrite: z.boolean().nullable(),
|
||||
recontactDays: z.number().int(),
|
||||
inAppSurveyBranding: z.boolean(),
|
||||
linkSurveyBranding: z.boolean(),
|
||||
|
||||
Reference in New Issue
Block a user