M .eslintrc => .eslintrc +1 -0
@@ 36,6 36,7 @@
"@typescript-eslint/restrict-template-expressions": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-argument": "warn",
+ "@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/ban-types": [
"error",
{
M src/utils/dockerUtils.ts => src/utils/dockerUtils.ts +4 -3
@@ 46,9 46,10 @@ export const restartSingleServer = (serverId: string): void => {
export const stopSingleServer = (serverId: string): void => {
checkIfOnline(serverId).then((res) => {
- if (res)
+ if (res) {
dockerDaemon.getContainer(serverId).stop().catch(e => log.error(e));
- });
+ }
+ }).catch(e => log.error(e));
}
export const getImages = async (): Promise<string[]> => {
@@ 60,6 61,6 @@ export const getImages = async (): Promise<string[]> => {
})
}
-export const fetchImage = (imageTag: string) => {
+export const fetchImage = (imageTag: string): void => {
dockerDaemon.getImage(imageTag);
}
M src/utils/imageUtils.ts => src/utils/imageUtils.ts +1 -1
@@ 5,5 5,5 @@ import {dbConn} from "./dbUtils";
export const fetchImages = async (): Promise<readonly ImageTable[]> => {
const db = dbConn();
- return db<ImageTable>('images').select('*');
+ return await db<ImageTable>('images').select('*');
}=
\ No newline at end of file
M src/utils/loggerUtils.ts => src/utils/loggerUtils.ts +1 -1
@@ 1,5 1,5 @@
import { Logger } from 'tslog';
-export const generateLogger = (loggerName: string) => {
+export const generateLogger = (loggerName: string): Logger<any> => {
return new Logger({ name: loggerName });
}=
\ No newline at end of file