feat: get breakfast package from API

This commit is contained in:
Simon Emanuelsson
2024-10-28 10:12:03 +01:00
parent fc8844eb96
commit 62f549e85d
47 changed files with 718 additions and 210 deletions

View File

@@ -148,7 +148,7 @@ export const editProfile = protectedServerActionProcedure
)
}
const apiResponse = await api.patch(api.endpoints.v1.profile, {
const apiResponse = await api.patch(api.endpoints.v1.Profile.profile, {
body,
cache: "no-store",
headers: {

View File

@@ -55,7 +55,7 @@ export const registerUser = serviceServerActionProcedure
let apiResponse
try {
apiResponse = await api.post(api.endpoints.v1.profile, {
apiResponse = await api.post(api.endpoints.v1.Profile.profile, {
body: parsedPayload.data,
headers: {
Authorization: `Bearer ${ctx.serviceToken}`,

View File

@@ -33,7 +33,7 @@ export const registerUserBookingFlow = serviceServerActionProcedure
// TODO: Consume the API to register the user as soon as passwordless signup is enabled.
// let apiResponse
// try {
// apiResponse = await api.post(api.endpoints.v1.profile, {
// apiResponse = await api.post(api.endpoints.v1.Profile.profile, {
// body: payload,
// headers: {
// Authorization: `Bearer ${ctx.serviceToken}`,