Skip to content

Commit

Permalink
fix: issues
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu-dixit committed Dec 27, 2024
1 parent 463e877 commit 91850d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions js/src/sdk/base.toolset.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe("ComposioToolSet class tests", () => {

it("should have schema processor", async () => {
const addSchemaProcessor: TSchemaProcessor = ({
actionName,
actionName: _actionName,
toolSchema,
}) => {
return {
Expand All @@ -52,7 +52,7 @@ describe("ComposioToolSet class tests", () => {
};

toolset.addSchemaProcessor(addSchemaProcessor);
const tools = await toolset.getToolsSchema({
await toolset.getToolsSchema({
actions: ["github_issues_create"],
});
});
Expand Down
2 changes: 1 addition & 1 deletion js/src/sdk/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe("Basic SDK spec suite", () => {
const client = new Composio({ apiKey: COMPOSIO_API_KEY });

try {
const apps = await client.apps.list();
await client.apps.list();
} catch (e) {
if (e instanceof ComposioError) {
expect(e.errCode).toBe(COMPOSIO_SDK_ERROR_CODES.BACKEND.NOT_FOUND);
Expand Down
5 changes: 1 addition & 4 deletions js/src/sdk/utils/processor/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ export const fileResponseProcessor: TPostProcessor = ({
};
};

export const fileInputProcessor: TPreProcessor = ({
params,
actionName,
}) => {
export const fileInputProcessor: TPreProcessor = ({ params, actionName }) => {
const requestData = Object.entries(params).reduce(
(acc, [key, value]) => {
if (key === "file_uri_path" && typeof value === "string") {
Expand Down

0 comments on commit 91850d3

Please sign in to comment.