mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-02 16:09:59 -04:00
feat(knex): create database interfaces and knexjs nest integration
Co-authored-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
b771f1c1bf
commit
1a70fd048d
93 changed files with 760 additions and 2927 deletions
|
@ -6,8 +6,8 @@
|
|||
import { AliasCreateDto, AliasUpdateDto } from '@hedgedoc/commons';
|
||||
import request from 'supertest';
|
||||
|
||||
import { User } from '../../src/database/user.entity';
|
||||
import { Note } from '../../src/notes/note.entity';
|
||||
import { User } from '../../src/users/user.entity';
|
||||
import {
|
||||
password1,
|
||||
password2,
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
import request from 'supertest';
|
||||
|
||||
import { LocalService } from '../../src/auth/local/local.service';
|
||||
import { User } from '../../src/database/user.entity';
|
||||
import { HistoryEntryImportDto } from '../../src/history/history-entry-import.dto';
|
||||
import { HistoryEntry } from '../../src/history/history-entry.entity';
|
||||
import { HistoryService } from '../../src/history/history.service';
|
||||
import { Note } from '../../src/notes/note.entity';
|
||||
import { NotesService } from '../../src/notes/notes.service';
|
||||
import { User } from '../../src/users/user.entity';
|
||||
import { UsersService } from '../../src/users/users.service';
|
||||
import { TestSetup, TestSetupBuilder } from '../test-setup';
|
||||
|
||||
|
|
|
@ -7,9 +7,9 @@ import { LoginUserInfoDto, ProviderType } from '@hedgedoc/commons';
|
|||
import { promises as fs } from 'fs';
|
||||
import request from 'supertest';
|
||||
|
||||
import { User } from '../../src/database/user.entity';
|
||||
import { NotInDBError } from '../../src/errors/errors';
|
||||
import { Note } from '../../src/notes/note.entity';
|
||||
import { User } from '../../src/users/user.entity';
|
||||
import { TestSetup, TestSetupBuilder } from '../test-setup';
|
||||
|
||||
describe('Me', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
import { promises as fs } from 'fs';
|
||||
import { join } from 'path';
|
||||
import { User } from 'src/users/user.entity';
|
||||
import { User } from 'src/database/user.entity';
|
||||
import request from 'supertest';
|
||||
|
||||
import { ConsoleLoggerService } from '../../src/logger/console-logger.service';
|
||||
|
|
|
@ -7,9 +7,9 @@ import { promises as fs } from 'fs';
|
|||
import { join } from 'path';
|
||||
import request from 'supertest';
|
||||
|
||||
import { User } from '../../src/database/user.entity';
|
||||
import { NotInDBError } from '../../src/errors/errors';
|
||||
import { Group } from '../../src/groups/group.entity';
|
||||
import { User } from '../../src/users/user.entity';
|
||||
import { TestSetup, TestSetupBuilder } from '../test-setup';
|
||||
|
||||
describe('Notes', () => {
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
import { NoteMetadataDto } from '@hedgedoc/commons';
|
||||
import { promises as fs } from 'fs';
|
||||
import { join } from 'path';
|
||||
import { HistoryEntryDto } from 'src/history/history-entry.dto';
|
||||
import request from 'supertest';
|
||||
|
||||
import { User } from '../../src/database/user.entity';
|
||||
import { HistoryEntryUpdateDto } from '../../src/history/history-entry-update.dto';
|
||||
import { User } from '../../src/users/user.entity';
|
||||
import { HistoryEntryDto } from '../../src/history/history-entry.dto';
|
||||
import { TestSetup, TestSetupBuilder } from '../test-setup';
|
||||
|
||||
describe('Me', () => {
|
||||
|
|
|
@ -60,6 +60,7 @@ import {
|
|||
registerNoteConfig,
|
||||
} from '../src/config/mock/note.config.mock';
|
||||
import { NoteConfig } from '../src/config/note.config';
|
||||
import { User } from '../src/database/user.entity';
|
||||
import { ErrorExceptionMapping } from '../src/errors/error-mapping';
|
||||
import { eventModuleConfig } from '../src/events';
|
||||
import { FrontendConfigModule } from '../src/frontend-config/frontend-config.module';
|
||||
|
@ -82,7 +83,6 @@ import { RevisionsModule } from '../src/revisions/revisions.module';
|
|||
import { RevisionsService } from '../src/revisions/revisions.service';
|
||||
import { SessionModule } from '../src/sessions/session.module';
|
||||
import { SessionService } from '../src/sessions/session.service';
|
||||
import { User } from '../src/users/user.entity';
|
||||
import { UsersModule } from '../src/users/users.module';
|
||||
import { UsersService } from '../src/users/users.service';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue