diff --git a/apps/studio/components/interfaces/Integrations/Queues/CreateQueueSheet/CreateQueueSheet.schema.ts b/apps/studio/components/interfaces/Integrations/Queues/CreateQueueSheet/CreateQueueSheet.schema.ts index 393c244061b..e4ff0c93fd0 100644 --- a/apps/studio/components/interfaces/Integrations/Queues/CreateQueueSheet/CreateQueueSheet.schema.ts +++ b/apps/studio/components/interfaces/Integrations/Queues/CreateQueueSheet/CreateQueueSheet.schema.ts @@ -8,8 +8,8 @@ const normalQueueSchema = z.object({ const partitionedQueueSchema = z.object({ type: z.literal('partitioned'), - partitionInterval: z.coerce.number(), - retentionInterval: z.coerce.number(), + partitionInterval: z.coerce.number().int().positive(), + retentionInterval: z.coerce.number().int().positive(), }) const unloggedQueueSchema = z.object({