diff --git a/backend/src/config/config.service.ts b/backend/src/config/config.service.ts index b40a79f..2088c6d 100644 --- a/backend/src/config/config.service.ts +++ b/backend/src/config/config.service.ts @@ -142,7 +142,7 @@ export class ConfigService extends EventEmitter { const response: Config[] = []; for (const variable of data) { - response.push(await this.update(variable.key, variable.value)); + response.push(await this.update(variable.key, variable.value)); } return response; diff --git a/frontend/src/pages/account/index.tsx b/frontend/src/pages/account/index.tsx index 21ae1e0..a7104af 100644 --- a/frontend/src/pages/account/index.tsx +++ b/frontend/src/pages/account/index.tsx @@ -413,7 +413,7 @@ const Account = () => { onConfirm: async () => { await userService .removeCurrentUser() - .then(()=> window.location.reload()) + .then(() => window.location.reload()) .catch(toast.axiosError); }, }) diff --git a/frontend/src/pages/admin/index.tsx b/frontend/src/pages/admin/index.tsx index 4c378b7..4ad8b87 100644 --- a/frontend/src/pages/admin/index.tsx +++ b/frontend/src/pages/admin/index.tsx @@ -54,19 +54,22 @@ const Admin = () => { ]); useEffect(() => { - configService.isNewReleaseAvailable().then((isNewReleaseAvailable) => { - if (isNewReleaseAvailable) { - setManagementOptions([ - ...managementOptions, - { - title: "Update", - icon: TbRefresh, - route: - "https://github.com/stonith404/pingvin-share/releases/latest", - }, - ]); - } - }).catch(); + configService + .isNewReleaseAvailable() + .then((isNewReleaseAvailable) => { + if (isNewReleaseAvailable) { + setManagementOptions([ + ...managementOptions, + { + title: "Update", + icon: TbRefresh, + route: + "https://github.com/stonith404/pingvin-share/releases/latest", + }, + ]); + } + }) + .catch(); }, []); return (