Skip to content

Commit

Permalink
refactor: rename options
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekaN2 committed Oct 20, 2023
1 parent 65fc8b3 commit d69ee60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/presentation/http/router/noteSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import notEmpty from '@infrastructure/utils/notEmpty.js';
/**
* Get note by id options
*/
interface GetNoteByIdOptions {
interface GetNoteSettingsByNodeIdOptions {
/**
* Note id
*/
Expand Down Expand Up @@ -49,7 +49,7 @@ const NoteSettingsRouter: FastifyPluginCallback<NoteSettingsRouterOptions> = (fa
* @todo move to the NoteSettings Router
*/
fastify.get<{
Params: GetNoteByIdOptions,
Params: GetNoteSettingsByNodeIdOptions,
Reply: NotesSettings
}>('/:id', async (request, reply) => {
const params = request.params;
Expand All @@ -75,7 +75,7 @@ const NoteSettingsRouter: FastifyPluginCallback<NoteSettingsRouterOptions> = (fa
*/
fastify.patch<{
Body: Partial<NotesSettings>,
Params: GetNoteByIdOptions,
Params: GetNoteSettingsByNodeIdOptions,
Reply: NotesSettings,
}>('/:id', { preHandler: [opts.middlewares.authRequired, opts.middlewares.withUser] }, async (request, reply) => {
const noteId = request.params.id;
Expand Down

0 comments on commit d69ee60

Please sign in to comment.