Skip to content

Commit 4618333

Browse files
committed
comments updated
1 parent e2781db commit 4618333

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/domain/service/note.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ export default class NoteService {
416416
* Get concrete history record of the note
417417
* Used for showing some of the note content versions
418418
* @param id - id of the note history record
419-
* @returns full public note history record or raises domain error if record not found
419+
* @returns full public note history record with user information or raises domain error if record not found
420420
*/
421421
public async getHistoryRecordById(id: NoteHistoryRecord['id']): Promise<NoteHistoryPublic> {
422422
const noteHistoryRecord = await this.noteHistoryRepository.getHistoryRecordById(id);

src/repository/noteHistory.repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default class NoteHistoryRepository {
3636
* Get concrete history record by it's id
3737
* Used for presentation of certain version of note content saved in history
3838
* @param id - id of the history record
39-
* @returns full history record or null if there is no record with such an id
39+
* @returns full history record with user information or null if there is no record with such an id
4040
*/
4141
public async getHistoryRecordById(id: NoteHistoryRecord['id']): Promise<NoteHistoryView | null> {
4242
return await this.storage.getHistoryRecordById(id);

src/repository/storage/postgres/orm/sequelize/noteHistory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export default class NoteHistorySequelizeStorage {
161161
/**
162162
* Get concrete history record by it's id
163163
* @param id - id of the history record
164-
* @returns full history record or null if there is no record with such an id
164+
* @returns full history record with user information or null if there is no record with such an id
165165
*/
166166
public async getHistoryRecordById(id: NoteHistoryRecord['id']): Promise<NoteHistoryView | null> {
167167
const historyView = await this.model.findOne({

0 commit comments

Comments
 (0)