Skip to content

Commit 0672f9d

Browse files
committed
fix(client): fix query keys
1 parent 600506c commit 0672f9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

client/client/client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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[] }>(

0 commit comments

Comments
 (0)