Fixed eslint warnings on changed files (#15928)

This commit is contained in:
Aman Raj
2025-11-19 21:43:07 +05:30
committed by GitHub
parent 67846c05bf
commit 0223851620
3 changed files with 7 additions and 9 deletions
+2 -2
View File
@@ -1,5 +1,3 @@
import console from 'console';
import { rawDataSource } from 'src/database/typeorm/raw/raw.datasource';
export const camelToSnakeCase = (str: string) =>
@@ -15,6 +13,7 @@ export const performQuery = async <T = unknown>(
const result = await rawDataSource.query<T>(query);
if (withLog) {
// eslint-disable-next-line no-console
console.log(`Performed '${consoleDescription}' successfully`);
}
@@ -28,6 +27,7 @@ export const performQuery = async <T = unknown>(
message = `Failed to perform '${consoleDescription}': ${err}`;
}
if (withLog) {
// eslint-disable-next-line no-console
console.error(message);
}
}