mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix: Use correct type for ListDataStoreContentFilter filter (no-changelog) (#18752)
This commit is contained in:
@@ -11,7 +11,7 @@ export type ListDataStoreContentFilterConditionType = z.infer<typeof FilterCondi
|
||||
const filterRecord = z.object({
|
||||
columnName: dataStoreColumnNameSchema,
|
||||
condition: FilterConditionSchema.default('eq'),
|
||||
value: z.union([z.string(), z.number(), z.boolean(), z.date()]),
|
||||
value: z.union([z.string(), z.number(), z.boolean(), z.date(), z.null()]),
|
||||
});
|
||||
|
||||
const chainedFilterSchema = z.union([z.literal('and'), z.literal('or')]);
|
||||
|
||||
@@ -47,7 +47,7 @@ export type ListDataStoreContentFilter = {
|
||||
filters: Array<{
|
||||
columnName: string;
|
||||
condition: 'eq' | 'neq';
|
||||
value: string | number | boolean | Date;
|
||||
value: DataStoreColumnJsType;
|
||||
}>;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user