From 5227dfbae4cb45080e079b2221ab4ee77deff42f Mon Sep 17 00:00:00 2001 From: msenechal Date: Tue, 16 Jan 2024 09:20:38 +0000 Subject: [PATCH] Fixed eslint + format --- src/components/Layout/Header.tsx | 2 +- src/utils/Driver.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Layout/Header.tsx b/src/components/Layout/Header.tsx index 4e30a4d98..6dd150f41 100644 --- a/src/components/Layout/Header.tsx +++ b/src/components/Layout/Header.tsx @@ -24,7 +24,7 @@ export default function Header({ themeMode, toggleTheme }: { themeMode: string; > Neo4j Logo diff --git a/src/utils/Driver.tsx b/src/utils/Driver.tsx index ae7540c2e..1a2a4c5da 100644 --- a/src/utils/Driver.tsx +++ b/src/utils/Driver.tsx @@ -1,3 +1,4 @@ +/* eslint-disable no-console */ import neo4j, { Driver } from 'neo4j-driver'; let driver: Driver; @@ -19,7 +20,7 @@ export async function setDriver(connectionURI, username, password) { export async function disconnect() { try { - driver.close(); + await driver.close(); return true; } catch (err) { console.error(`Disconnection error\n${err}\nCause: ${err.cause}`);