From d639f2a7b3c952748c0f41829a4ed97e4508523b Mon Sep 17 00:00:00 2001 From: Maximilian Zenz Date: Fri, 12 Jan 2024 10:34:30 +0100 Subject: [PATCH] #207 Backend Frontend separation - fixing eslint errors - fixing Db import in projectStructureHelper.ts --- lib/models/Branch.js | 1 - lib/utils/projectStructureHelper.ts | 3 +-- lib/utils/utils.ts | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/models/Branch.js b/lib/models/Branch.js index da306960d..d621f9a7c 100644 --- a/lib/models/Branch.js +++ b/lib/models/Branch.js @@ -1,6 +1,5 @@ 'use strict'; -import { aql } from 'arangojs'; import Model from './Model.js'; const Branch = Model.define('Branch', { diff --git a/lib/utils/projectStructureHelper.ts b/lib/utils/projectStructureHelper.ts index e748e48e0..8639c3fb7 100644 --- a/lib/utils/projectStructureHelper.ts +++ b/lib/utils/projectStructureHelper.ts @@ -2,12 +2,11 @@ import fs from 'fs'; import * as utils from './utils'; -import Moment from 'moment'; import console_stamp from 'console-stamp'; import path from 'path'; import { fileURLToPath } from 'url'; import Context from './context'; -import Db from './core/db/db'; +import Db from '../core/db/db'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); diff --git a/lib/utils/utils.ts b/lib/utils/utils.ts index 4644c4399..184826f0b 100755 --- a/lib/utils/utils.ts +++ b/lib/utils/utils.ts @@ -2,7 +2,6 @@ import archiver from 'archiver'; import stream from 'stream'; -import Db from '../core/db/db'; export function createZipStream(directory: string) { const zip = archiver('zip');