Skip to content

Commit

Permalink
Revert "debug: print query conditions"
Browse files Browse the repository at this point in the history
This reverts commit f8bce61.
  • Loading branch information
sdjdd committed Oct 24, 2023
1 parent 9c7a7ec commit 078ece6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion next/api/src/orm/clickhouse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ export class ClickHouse {

async find() {
const sql = this.toSqlString();
console.log('clickhouse sql', sql);
return await ClickHouse.findWithSqlStr<QueryData>(sql);
}

Expand Down
4 changes: 0 additions & 4 deletions next/api/src/router/ticket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,6 @@ router.get(
});
}

console.log('find ticket query', finalQuery.getRawCondition());

let tickets: Ticket[];
if (params.count && !count) {
const result = await finalQuery.findAndCount(currentUser.getAuthOptions());
Expand Down Expand Up @@ -395,8 +393,6 @@ router.get(

const queryString = conditions.join(' AND ');

console.log({ queryString });

const searchQuery = new AV.SearchQuery('Ticket');
searchQuery.queryString(queryString);
sortFields?.forEach(({ key, order }) => {
Expand Down
1 change: 0 additions & 1 deletion next/api/src/ticket/export/ExportTicket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ export default async function exportTicket({ params, sortItems, utcOffset, date
const exportFileManager = new ExportFileManager(fileName);
debug('count tickets');
const [query, containFields] = await createBaseTicketQuery(rest, sortItems);
console.log('export query condition', query.getRawCondition());
const count = await query.count(authOptions);
debug('count: ', count);
const categoryMap = await getCategories();
Expand Down

0 comments on commit 078ece6

Please sign in to comment.