2
0

🐛 (sheets) Fix can't start bot when filter is undefined

This commit is contained in:
Baptiste Arnaud
2023-03-17 07:42:42 +01:00
parent f9964e3f60
commit be7c0fc0d0
5 changed files with 15 additions and 14 deletions

View File

@ -40,10 +40,12 @@ const googleSheetsGetOptionsSchema = googleSheetsOptionsBaseSchema.merge(
action: z.enum([GoogleSheetsAction.GET]),
// TODO: remove referenceCell once migrated to filtering
referenceCell: cellSchema.optional(),
filter: z.object({
comparisons: z.array(rowsFilterComparisonSchema),
logicalOperator: z.nativeEnum(LogicalOperator),
}),
filter: z
.object({
comparisons: z.array(rowsFilterComparisonSchema),
logicalOperator: z.nativeEnum(LogicalOperator),
})
.optional(),
cellsToExtract: z.array(extractingCellSchema),
})
)