Skip to content

Commit

Permalink
update: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dependentmadani committed Sep 14, 2024
1 parent d6c9ded commit 6bdc56a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
10 changes: 5 additions & 5 deletions src/presentation/http/router/note.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -628,18 +628,18 @@ describe('Note API', () => {
items: [
{
id: parentNote.publicId,
content: parentNote.content
content: parentNote.content,
},
{
id: childNote.publicId,
content: childNote.content
content: childNote.content,
},
{
id: grandchildNote.publicId,
content: grandchildNote.content
content: grandchildNote.content,
},
],
}
},
});
});

Expand Down Expand Up @@ -678,7 +678,7 @@ describe('Note API', () => {
content: note.content,
},
],
}
},
});
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/presentation/http/router/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type NoteVisitsService from '@domain/service/noteVisits.js';
import type EditorToolsService from '@domain/service/editorTools.js';
import type EditorTool from '@domain/entities/editorTools.js';
import type { NoteHistoryMeta, NoteHistoryPublic, NoteHistoryRecord } from '@domain/entities/noteHistory.js';
import { NoteList } from '@domain/entities/noteList.js';
import type { NoteList } from '@domain/entities/noteList.js';

/**
* Interface for the note router.
Expand Down
2 changes: 1 addition & 1 deletion src/repository/note.repository.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Note, NoteCreationAttributes, NoteInternalId, NotePublicId } from '@domain/entities/note.js';
import { NoteList } from '@domain/entities/noteList.js';
import type { NoteList } from '@domain/entities/noteList.js';
import type NoteStorage from '@repository/storage/note.storage.js';

/**
Expand Down
12 changes: 5 additions & 7 deletions src/repository/storage/postgres/orm/sequelize/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import { UserModel } from '@repository/storage/postgres/orm/sequelize/user.js';
import type { NoteSettingsModel } from './noteSettings.js';
import type { NoteVisitsModel } from './noteVisits.js';
import type { NoteHistoryModel } from './noteHistory.js';
import { NoteRelationsModel } from './noteRelations.js';
import type { NoteRelationsModel } from './noteRelations.js';
import { notEmpty } from '@infrastructure/utils/empty.js';
import { NoteList } from '@domain/entities/noteList.js';
import { TeamsModel } from './teams.js';
import type { NoteList } from '@domain/entities/noteList.js';
import type { TeamsModel } from './teams.js';

/* eslint-disable @typescript-eslint/naming-convention */

Expand Down Expand Up @@ -164,18 +164,16 @@ export default class NoteSequelizeStorage {
};

public createAssociationWithNoteRelationModel(model: ModelStatic<NoteRelationsModel>): void {

/**
* Create association with note relations
*/
this.noteRelationModel = model;
}

public createAssociationWithTeamsModel(model: ModelStatic<TeamsModel>): void {

/**
* Create association with teams
*/
*/
this.teamModel = model;
}

Expand Down Expand Up @@ -348,7 +346,6 @@ export default class NoteSequelizeStorage {
});
};


/**
* Get all parent notes of a note that a user has access to,
* by checking the team access.
Expand Down Expand Up @@ -409,6 +406,7 @@ export default class NoteSequelizeStorage {
}

parentNotes.items.reverse();

return parentNotes;
}
}

0 comments on commit 6bdc56a

Please sign in to comment.