File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,22 +59,22 @@ export class HackbarClient implements QueryClient, MutationClient {
5959 return { data : res . data . menu , error : null }
6060 }
6161 async getUncheckedOrdersCustomer ( ) {
62- const res = await this . fetch < { orders : types . Order [ ] } > (
62+ const res = await this . fetch < { uncheckedOrdersCustomer : types . Order [ ] } > (
6363 query . getUncheckedOrdersCustomer ( ) ,
6464 )
6565 if ( res . error !== null ) {
6666 return { data : null , error : res . error }
6767 }
68- return { data : res . data . orders , error : null }
68+ return { data : res . data . uncheckedOrdersCustomer , error : null }
6969 }
7070 async getUncheckedOrders ( ) {
71- const res = await this . fetch < { orders : types . Order [ ] } > (
71+ const res = await this . fetch < { uncheckedOrders : types . Order [ ] } > (
7272 query . getUncheckedOrders ( ) ,
7373 )
7474 if ( res . error !== null ) {
7575 return { data : null , error : res . error }
7676 }
77- return { data : res . data . orders , error : null }
77+ return { data : res . data . uncheckedOrders , error : null }
7878 }
7979 async getRecipes ( ) {
8080 const res = await this . fetch < { recipes : types . RecipeGroup [ ] } > (
You can’t perform that action at this time.
0 commit comments