Skip to content

Commit

Permalink
chore: warning fixes
Browse files Browse the repository at this point in the history
lint fixes
  • Loading branch information
e11sy committed Oct 22, 2023
1 parent 6e2947e commit 50ba09c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/domain/service/noteList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export default class NoteListService {
/**
* Number of notes shown in one time
*/

private readonly portionSize = 30;

/**
* Note service constructor
*
Expand All @@ -32,6 +34,7 @@ export default class NoteListService {
*/
public async getNoteListByCreatorId(id: number, page: number): Promise<NoteList> {
const offset = (page - 1) * this.portionSize;

return {
items: await this.repository.getNoteListByCreatorId(id, offset, this.portionSize),
};
Expand Down

0 comments on commit 50ba09c

Please sign in to comment.