feat: get breakfast package from API
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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}`,
|
||||
|
||||
@@ -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}`,
|
||||
|
||||
Reference in New Issue
Block a user