Skip to content

Commit

Permalink
Rename function name to correct version
Browse files Browse the repository at this point in the history
  • Loading branch information
elizachi committed Jan 7, 2024
1 parent c76aa53 commit 518dffa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/domain/service/noteRelationship.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ export default class NoteRelationshipService {
* @param noteId - id of the current note
*/
public async getParentNoteIdByNoteId(noteId: Note['id']): Promise<number | null> {
return await this.repository.getParentNoteByNoteId(noteId);
return await this.repository.getParentNoteIdByNoteId(noteId);
}
}
4 changes: 2 additions & 2 deletions src/repository/noteRelationship.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class NoteRelationshipRepository {
*
* @param noteId - id of the current note
*/
public async getParentNoteByNoteId(noteId: NoteInternalId): Promise<number | null> {
return await this.storage.getParentNoteByNoteId(noteId);
public async getParentNoteIdByNoteId(noteId: NoteInternalId): Promise<number | null> {
return await this.storage.getParentNoteIdByNoteId(noteId);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default class NoteRelationshipSequelizeStorage {
*
* @param parentId - parent note id
*/
public async getParentNoteByNoteId(parentId: NoteInternalId): Promise<number | null> {
public async getParentNoteIdByNoteId(parentId: NoteInternalId): Promise<number | null> {
const found = await this.model.findOne({
where: {
parentId,
Expand Down

0 comments on commit 518dffa

Please sign in to comment.