chore: update cursor env

This commit is contained in:
John Yeo
2025-07-06 21:45:25 +01:00
parent 07b9341327
commit afff6b80bd
2 changed files with 15 additions and 18 deletions

View File

@@ -1,6 +1,3 @@
{
"snapshot": "snapshot-20250706-b03c4a7f-a8b7-4006-ab8a-6e29faeb8e3c",
"start": "docker compose -f docker-compose.unix.yml up",
"terminals": [],
"install": "sudo apt install -y docker.io && sudo apt install -y docker-compose && sudo dockerd &"
"terminals": []
}

View File

@@ -5,20 +5,6 @@ import {
DiscountConfig,
} from "@autumn/shared";
export const defaultReward: CreateReward = {
name: "",
id: "",
promo_codes: [{ code: "" }],
type: null,
// For free product coupons
free_product_id: null,
// For discount type coupons
discount_config: null,
};
export const defaultDiscountConfig: DiscountConfig = {
discount_value: 0,
duration_type: CouponDurationType.Months,
@@ -27,3 +13,17 @@ export const defaultDiscountConfig: DiscountConfig = {
apply_to_all: true,
price_ids: [],
};
export const defaultReward: CreateReward = {
name: "",
id: "",
promo_codes: [{ code: "" }],
type: RewardType.PercentageDiscount,
// For free product coupons
free_product_id: null,
// For discount type coupons
discount_config: defaultDiscountConfig,
};