Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
Signed-off-by: sarthakjdev <jsarthak448@gmail.com>
  • Loading branch information
sarthakjdev committed May 29, 2024
1 parent a35d2ad commit b43fd2c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 2 additions & 3 deletions packages/wapi.js/src/client/request-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class RequestClient implements RequestClientInterface {
try {
const requestUrl = this.getRequestUrl();

console.log({ requestUrl, path, body })
console.log({ requestUrl, path, body });

const response = await fetch(`${requestUrl}${path}`, {
method: method,
Expand All @@ -78,12 +78,11 @@ export class RequestClient implements RequestClientInterface {
Authorization: `Bearer ${this.accessToken}`,
"User-Agent": this.userAgent,
},

});

const responseBody = await response.json();

console.log({ responseCode: response.status })
console.log({ responseCode: response.status });

return responseBody as CloudApiRequesterResourceTypeToResponseTypeMap[T];
} catch (error) {
Expand Down
3 changes: 0 additions & 3 deletions packages/wapi.js/src/manager/media/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ import { BaseManager } from "../base";
import { type MediaManagerInterface } from "./interface";
import {
CloudApiGetMediaUrlRequestSuccessResponseSchemaType,
CloudApiResponseSchemaType,
type CloudApiRequestResourceType,
} from "../../client/schema";
import { type MediaUploadResponseSchemaType } from "./schema";


/**
* Manager to handle media.
Expand Down
1 change: 0 additions & 1 deletion packages/wapi.js/src/manager/media/interface.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { type z } from "zod";
import { type BaseManagerInterface } from "../base/interface";
import { type CloudApiGetMediaUrlRequestSuccessResponseSchemaType } from "../../client/schema";
import { type MediaUploadResponseSchemaType } from "./schema";

/**
* Media manager interface
Expand Down

0 comments on commit b43fd2c

Please sign in to comment.