diff --git a/lib/history.ts b/lib/history.ts index d193234e0..55199d1a0 100644 --- a/lib/history.ts +++ b/lib/history.ts @@ -5,7 +5,7 @@ import LZString from 'lz-string' // core import { logger } from './logger' import { Note, User } from './models' -import errors from './errors' +import { errors } from './errors' // public diff --git a/lib/response.ts b/lib/response.ts index 49dde9abc..a8bc9b5fe 100644 --- a/lib/response.ts +++ b/lib/response.ts @@ -8,7 +8,7 @@ import { logger } from './logger' import { NoteUtils } from './web/note/util' -import errors from './errors' +import { errors } from './errors' import path from 'path' diff --git a/lib/web/note/actions.ts b/lib/web/note/actions.ts index 391d52241..6a97e0d3f 100644 --- a/lib/web/note/actions.ts +++ b/lib/web/note/actions.ts @@ -3,7 +3,7 @@ import { Response } from 'express' import { Note, Revision } from '../../models' import { logger } from '../../logger' import { config } from '../../config' -import errors from '../../errors' +import { errors } from '../../errors' import shortId from 'shortid' import moment from 'moment' import querystring from 'querystring' diff --git a/lib/web/note/controller.ts b/lib/web/note/controller.ts index a44fd4ba8..57e0a54e8 100644 --- a/lib/web/note/controller.ts +++ b/lib/web/note/controller.ts @@ -1,7 +1,7 @@ import { NextFunction, Request, Response } from 'express' import { NoteUtils } from './util' import * as ActionController from './actions' -import errors from '../../errors' +import { errors } from '../../errors' import { config } from '../../config' import { logger } from '../../logger' import { User, Note } from '../../models' diff --git a/lib/web/note/slide.ts b/lib/web/note/slide.ts index 6c9aa64a1..9ee4f29ae 100644 --- a/lib/web/note/slide.ts +++ b/lib/web/note/slide.ts @@ -1,6 +1,6 @@ import { NextFunction, Response } from "express"; import { NoteUtils } from "./util"; -import errors from '../../errors'; +import { errors } from '../../errors' import { logger } from '../../logger' import { config } from '../../config' import { User } from "../../models/user"; diff --git a/lib/web/note/util.ts b/lib/web/note/util.ts index f35a26e9a..15fe108b7 100644 --- a/lib/web/note/util.ts +++ b/lib/web/note/util.ts @@ -3,7 +3,7 @@ import { Response } from 'express' import path from 'path' import fs from 'fs' -import errors from '../../errors' +import { errors } from '../../errors' import { config } from '../../config' import { logger } from '../../logger' import { Note , User } from '../../models'