Skip to content

Commit

Permalink
naming improved
Browse files Browse the repository at this point in the history
  • Loading branch information
e11sy committed Jul 24, 2024
1 parent bdb8de3 commit 4bb9cac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/domain/service/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default class NoteService {
/**
* If content changes are valuable, they will be saved to note history
*/
if (await this.checkContentDifference(id, content)) {
if (await this.areContentChangesSignificant(id, content)) {
await this.noteHistoryRepository.createNoteHistoryRecord({
content,
userId: userId,
Expand Down Expand Up @@ -371,7 +371,7 @@ export default class NoteService {
* @param content - updated note content
* @returns - boolean, true if changes are valuable enough, false otherwise
*/
public async checkContentDifference(noteId: NoteInternalId, content: Note['content']): Promise<boolean> {
public async areContentChangesSignificant(noteId: NoteInternalId, content: Note['content']): Promise<boolean> {
const currentlySavedNoteContent = (await this.noteHistoryRepository.getLastContentVersion(noteId));

if (currentlySavedNoteContent === undefined) {
Expand Down

0 comments on commit 4bb9cac

Please sign in to comment.