Skip to content

Commit

Permalink
Merge pull request #149 from codex-team/fix/return-only-note-by-hostname
Browse files Browse the repository at this point in the history
Get Note By Hostname response fix
  • Loading branch information
kloV148 authored Dec 20, 2023
2 parents a13a075 + 19f25ff commit bd1337c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 0 additions & 7 deletions src/presentation/http/router/note.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/repository/storage/postgres/orm/sequelize/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ export default class NoteSequelizeStorage {
model: this.settingsModel,
as: 'noteSettings',
required: true,
attributes: [],
},
});
}
Expand Down

0 comments on commit bd1337c

Please sign in to comment.