From 94565d52bb2883e09f16d1363170ac9c0dccb7a1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 15 Apr 2019 15:26:15 +0200 Subject: Shared utils -> extra-utils Because they need dev dependencies --- shared/utils/logs/logs.ts | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 shared/utils/logs/logs.ts (limited to 'shared/utils/logs') diff --git a/shared/utils/logs/logs.ts b/shared/utils/logs/logs.ts deleted file mode 100644 index cbb1afb93..000000000 --- a/shared/utils/logs/logs.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { makeGetRequest } from '../requests/requests' -import { LogLevel } from '../../models/server/log-level.type' - -function getLogs (url: string, accessToken: string, startDate: Date, endDate?: Date, level?: LogLevel) { - const path = '/api/v1/server/logs' - - return makeGetRequest({ - url, - path, - token: accessToken, - query: { startDate, endDate, level }, - statusCodeExpected: 200 - }) -} - -export { - getLogs -} -- cgit v1.2.3