Skip to content

Commit

Permalink
variable name changed
Browse files Browse the repository at this point in the history
  • Loading branch information
e11sy committed Oct 22, 2023
1 parent b0f80b1 commit bf1e657
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/presentation/http/router/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const NoteRouter: FastifyPluginCallback<NoteRouterOptions> = (fastify, opts, don
notePublicId : NotePublicId;
},
Reply: {
deletedFlag : boolean
isDeleted : boolean
},
}>('/:notePublicId', {
schema: {
Expand All @@ -110,12 +110,12 @@ const NoteRouter: FastifyPluginCallback<NoteRouterOptions> = (fastify, opts, don
* @todo Check user access right
*/
const noteId = request.note?.id as number;
const deletedFlag = await noteService.deleteNoteById(noteId);
const isDeleted = await noteService.deleteNoteById(noteId);

/**
* Check if note does not exist
*/
return reply.send({ deletedFlag : deletedFlag });
return reply.send({ isDeleted : isDeleted });
});

/**
Expand Down

0 comments on commit bf1e657

Please sign in to comment.