refactor(order): createPaidOrder uses id references
This commit is contained in:
+2
-7
@@ -2,7 +2,6 @@ import type { Actor } from "@/lib/actor"
|
||||
import { allow, deny } from "@/lib/decision"
|
||||
import { resolveOwnerShop } from "@/lib/domain/resolve-current-shop"
|
||||
import type { ApiDecision } from "@/lib/errors"
|
||||
import type { PlayerService } from "@/lib/types"
|
||||
import { useAuthStore } from "@/store/auth"
|
||||
import { useOrderStore } from "@/store/orders"
|
||||
import { useShopStore } from "@/store/shops"
|
||||
@@ -20,14 +19,10 @@ export function listOrdersByConsumer(consumerId: string) {
|
||||
}
|
||||
|
||||
interface CreatePaidOrderInput {
|
||||
consumerId: string
|
||||
consumerName: string
|
||||
playerId: string
|
||||
playerName: string
|
||||
serviceId: string
|
||||
shopId?: string
|
||||
shopName?: string
|
||||
service: PlayerService
|
||||
totalPrice: number
|
||||
quantity: number
|
||||
note?: string
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user