Skip to content

Commit

Permalink
fix: fix formatted code generated
Browse files Browse the repository at this point in the history
prettier was replacing the quotes with double quotes causing th checks to break.
  • Loading branch information
seriouslag committed Apr 19, 2024
1 parent 1234434 commit 745912e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/cli.mts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async function setupProgram() {

const options = program.opts<LimitedUserConfig>();

generate(options, version);
await generate(options, version);
}

setupProgram();
20 changes: 10 additions & 10 deletions src/createExports.mts
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ export const createExports = (service: Service) => {
const { klasses } = service;
const methods = klasses.map((k) => k.methods).flat();

const allGet = methods.filter(
(m) => m.httpMethodName.toUpperCase() === "'GET'"
const allGet = methods.filter((m) =>
m.httpMethodName.toUpperCase().includes("GET")
);
const allPost = methods.filter(
(m) => m.httpMethodName.toUpperCase() === "'POST'"
const allPost = methods.filter((m) =>
m.httpMethodName.toUpperCase().includes("POST")
);
const allPut = methods.filter(
(m) => m.httpMethodName.toUpperCase() === "'PUT'"
const allPut = methods.filter((m) =>
m.httpMethodName.toUpperCase().includes("PUT")
);
const allPatch = methods.filter(
(m) => m.httpMethodName.toUpperCase() === "'PATCH'"
const allPatch = methods.filter((m) =>
m.httpMethodName.toUpperCase().includes("PATCH")
);
const allDelete = methods.filter(
(m) => m.httpMethodName.toUpperCase() === "'DELETE'"
const allDelete = methods.filter((m) =>
m.httpMethodName.toUpperCase().includes("DELETE")
);

const allGetQueries = allGet.map((m) => createUseQuery(m));
Expand Down

0 comments on commit 745912e

Please sign in to comment.