diff --git a/src/notes/notes.service.spec.ts b/src/notes/notes.service.spec.ts index d4a5154e6..0e38c41e7 100644 --- a/src/notes/notes.service.spec.ts +++ b/src/notes/notes.service.spec.ts @@ -657,7 +657,7 @@ describe('NotesService', () => { { id: 1, name: 'testTag', - notes: [note], + notes: Promise.resolve([note]), }, ]); const tagList = await service.toTagList(note); @@ -764,7 +764,7 @@ describe('NotesService', () => { { id: 1, name: 'testTag', - notes: [note], + notes: Promise.resolve([note]), }, ]); note.viewCount = 1337; @@ -866,7 +866,7 @@ describe('NotesService', () => { { id: 1, name: 'testTag', - notes: [note], + notes: Promise.resolve([note]), }, ]); note.viewCount = 1337; diff --git a/src/notes/tag.entity.ts b/src/notes/tag.entity.ts index 04f787b31..f054cdca5 100644 --- a/src/notes/tag.entity.ts +++ b/src/notes/tag.entity.ts @@ -18,5 +18,5 @@ export class Tag { name: string; @ManyToMany((_) => Note, (note) => note.tags) - notes: Note[]; + notes: Promise; }