Skip to content

Commit 97dc5bd

Browse files
committed
feat: save quantity
1 parent 3fd6c43 commit 97dc5bd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/common/schema/opportunities.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ export const recruiterSubscriptionFlagsSchema = z
295295
priceId: z.string({
296296
error: 'Price ID is required',
297297
}),
298+
quantity: z.number().int().min(1, {
299+
error: 'Quantity must be at least 1',
300+
}),
298301
}),
299302
{
300303
error: 'At least one subscription item is required',

0 commit comments

Comments
 (0)