From 5e50c47eacd1889f8132e6a1f07747a760972865 Mon Sep 17 00:00:00 2001 From: Roi Talpaz <2651169+fokolo@users.noreply.github.com> Date: Tue, 17 Sep 2024 12:44:57 +0300 Subject: [PATCH] formatting --- package.json | 2 +- src/api/search.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index bf8ccacfb..676db73df 100644 --- a/package.json +++ b/package.json @@ -77,8 +77,8 @@ "@types/luxon": "^3.3.1", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0 || ^18.0.0", - "@types/validator": "^13.12.2", "@types/uuid": "^10.0.0", + "@types/validator": "^13.12.2", "copyfiles": "^2.4.1", "ts-jest": "^29.1.4", "typescript": "^4.8.4" diff --git a/src/api/search.ts b/src/api/search.ts index 8dd43eb14..60325d157 100644 --- a/src/api/search.ts +++ b/src/api/search.ts @@ -9,18 +9,18 @@ export type PortEntity = { export default async function search( backendApiUrl: string, - searchQuery: object, + searchQuery: object ): Promise { const response = await fetch( `${backendApiUrl}/api/proxy/getport/entities/search`, { - method: 'POST', - credentials: 'include', + method: "POST", + credentials: "include", headers: { - 'Content-Type': 'application/json', + "Content-Type": "application/json", }, body: JSON.stringify(searchQuery), - }, + } ); const json = await response.json();