mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
NotesService: Get more note metadata from the database
Some previously hardcoded metadata-values are now retrieved from the database. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
30a0b25094
commit
9cae7e34dc
2 changed files with 39 additions and 21 deletions
|
@ -1,11 +1,17 @@
|
|||
import { Module } from '@nestjs/common';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { RevisionsModule } from '../revisions/revisions.module';
|
||||
import { UsersModule } from '../users/users.module';
|
||||
import { AuthorColor } from './author-color.entity';
|
||||
import { Note } from './note.entity';
|
||||
import { NotesService } from './notes.service';
|
||||
|
||||
@Module({
|
||||
imports: [TypeOrmModule.forFeature([Note, AuthorColor])],
|
||||
imports: [
|
||||
TypeOrmModule.forFeature([Note, AuthorColor]),
|
||||
RevisionsModule,
|
||||
UsersModule,
|
||||
],
|
||||
controllers: [],
|
||||
providers: [NotesService],
|
||||
exports: [NotesService],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue