Fixed eslint warnings on changed files (#15928)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user