Skip to content

Commit

Permalink
Fix some missing variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
elizachi committed Jan 9, 2024
1 parent feea91c commit 22bde4a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/domain/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface DomainServices {
/**
* Note relationship service instance
*/
noteRelationshipService: NoteRelationsService,
noteRelationsService: NoteRelationsService,

/**
* Auth service instance
Expand Down Expand Up @@ -82,7 +82,7 @@ export function init(repositories: Repositories, appConfig: AppConfig): DomainSe
noteService,
noteListService,
noteSettingsService,
noteRelationshipService: noteRelationsService,
noteRelationsService: noteRelationsService,
userService,
authService,
aiService,
Expand Down
2 changes: 1 addition & 1 deletion src/presentation/http/http-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export default class HttpApi implements Api {
prefix: '/note',
noteService: domainServices.noteService,
noteSettingsService: domainServices.noteSettingsService,
noteRelationsService: domainServices.noteRelationshipService,
noteRelationsService: domainServices.noteRelationsService,
});

await this.server?.register(NoteListRouter, {
Expand Down
4 changes: 2 additions & 2 deletions src/presentation/http/router/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const NoteRouter: FastifyPluginCallback<NoteRouterOptions> = (fastify, opts, don
*/
const noteService = opts.noteService;
const noteSettingsService = opts.noteSettingsService;
const noteRelationspipService = opts.noteRelationsService;
const noteRelationsService = opts.noteRelationsService;

/**
* Prepare note id resolver middleware
Expand Down Expand Up @@ -93,7 +93,7 @@ const NoteRouter: FastifyPluginCallback<NoteRouterOptions> = (fastify, opts, don
return reply.notFound('Note not found');
}

const parentId = await noteRelationspipService.getParentNoteIdByNoteId(note.id);
const parentId = await noteRelationsService.getParentNoteIdByNoteId(note.id);

const parentNote = parentId !== null ? await noteService.getNoteById(parentId) : undefined;
/**
Expand Down

0 comments on commit 22bde4a

Please sign in to comment.