diff --git a/src/presentation/http/router/note.test.ts b/src/presentation/http/router/note.test.ts index a12a2841..c67ac1db 100644 --- a/src/presentation/http/router/note.test.ts +++ b/src/presentation/http/router/note.test.ts @@ -16,13 +16,6 @@ describe('Note API', () => { 'content': null, 'createdAt': '2023-10-16T13:49:19.000Z', 'updatedAt': '2023-10-16T13:49:19.000Z', - 'noteSettings': { - 'customHostname': 'codex.so', - 'isPublic': true, - 'id': 1, - 'noteId': 1, - 'invitationHash': 'Hzh2hy4igf', - }, }, 'accessRights': { 'canEdit': false, diff --git a/src/repository/storage/postgres/orm/sequelize/note.ts b/src/repository/storage/postgres/orm/sequelize/note.ts index 03f40a3e..1631b62f 100644 --- a/src/repository/storage/postgres/orm/sequelize/note.ts +++ b/src/repository/storage/postgres/orm/sequelize/note.ts @@ -231,6 +231,7 @@ export default class NoteSequelizeStorage { model: this.settingsModel, as: 'noteSettings', required: true, + attributes: [], }, }); }