Skip to content

Commit 1c99473

Browse files
committed
chore: don't output SQL queries when generating an app
Make output cleaner.
1 parent 524a6a0 commit 1c99473

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/cli.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -170,18 +170,14 @@ const createEndpoints = async (destDir, { lang }, config) => {
170170
}
171171
endpoint.methods.forEach(method => {
172172
const verb = method.verb.toUpperCase()
173-
console.log(`${verb} ${path}`)
173+
console.log(`\t${verb} ${path}`)
174174

175175
let queries = []
176176
if (method.query) {
177177
queries.push(method.query)
178178
} else if (method.aggregated_queries) {
179179
queries = Object.values(method.aggregated_queries)
180180
}
181-
queries.forEach(query => {
182-
const sql = removePlaceholders(flattenQuery(removeComments(query)))
183-
console.log(`\t${sql}`)
184-
})
185181
})
186182
}
187183

0 commit comments

Comments
 (0)