Fix build errors: localization syntax, key paths, and ViewOrderCard widget
This commit is contained in:
@@ -598,16 +598,19 @@ query listStaffsApplicationsByBusinessForDay(
|
||||
appliedAt
|
||||
status
|
||||
|
||||
shiftRole{
|
||||
shift{
|
||||
shiftRole {
|
||||
startTime
|
||||
shift {
|
||||
date
|
||||
location
|
||||
locationAddress
|
||||
cost
|
||||
}
|
||||
count
|
||||
assigned
|
||||
hours
|
||||
|
||||
role{
|
||||
role {
|
||||
name
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ mutation createOrder(
|
||||
detectedConflicts: $detectedConflicts
|
||||
poReference: $poReference
|
||||
}
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
mutation updateOrder(
|
||||
@@ -92,7 +92,7 @@ mutation updateOrder(
|
||||
detectedConflicts: $detectedConflicts
|
||||
poReference: $poReference
|
||||
}
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
mutation deleteOrder($id: UUID!) @auth(level: USER) {
|
||||
|
||||
@@ -321,7 +321,6 @@ query listShiftRolesByBusinessAndDateRange(
|
||||
shift: {
|
||||
date: { ge: $start, le: $end }
|
||||
order: { businessId: { eq: $businessId } }
|
||||
status: { eq: $status }
|
||||
}
|
||||
}
|
||||
offset: $offset
|
||||
|
||||
@@ -22,7 +22,7 @@ enum OrderDuration {
|
||||
}
|
||||
|
||||
#events
|
||||
type Order @table(name: "orders") {
|
||||
type Order @table(name: "orders", key: ["id"]) {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
eventName: String
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ enum ShiftStatus {
|
||||
CANCELED
|
||||
}
|
||||
|
||||
type Shift @table(name: "shifts") {
|
||||
type Shift @table(name: "shifts", key: ["id"]) {
|
||||
id: UUID! @default(expr: "uuidV4()")
|
||||
|
||||
title: String!
|
||||
|
||||
Reference in New Issue
Block a user