Merge branch 'bugfix/merge-conflict' into 'develop'

fix: merge conflict

See merge request witapp/aura-webapp!61
This commit is contained in:
Victor Ershov 2024-03-24 21:34:52 +00:00
commit ba080d3d4e
3 changed files with 2 additions and 7 deletions

View File

@ -5,9 +5,7 @@ interface Payload {
token: string;
}
export interface PayloadGet extends Payload {
id: string;
}
export type PayloadGet = Payload;
export interface PayloadPost extends Payload {
data: {
@ -75,8 +73,7 @@ export const createRequestPost = ({ data, token }: PayloadPost): Request => {
});
};
export const createRequestGet = ({ id, token }: PayloadGet): Request => {
id;
export const createRequestGet = ({ token }: PayloadGet): Request => {
const url = new URL(routes.server.dApiTestPaymentProducts());
return new Request(url, { method: "GET", headers: getAuthHeaders(token) });
};

View File

@ -117,7 +117,6 @@ function PaymentWithEmailPage() {
console.log(token);
const productsSinglePayment = await api.getSinglePaymentProducts({
id: "1",
token,
});
const { productId } = productsSinglePayment[0];

View File

@ -7,7 +7,6 @@ export const apiHost = "https://api-web.aura.wit.life";
const dApiHost = isProduction ? "https://d.api.witapps.us" : "https://dev.api.witapps.us"
const siteHost = "https://aura.wit.life";
const prefix = "api/v1";
const dApiHost = "https://dev.api.witapps.us";
const routes = {
client: {