diff --git a/src/presentation/http/router/noteSettings.ts b/src/presentation/http/router/noteSettings.ts index f9160d36..94fbe979 100644 --- a/src/presentation/http/router/noteSettings.ts +++ b/src/presentation/http/router/noteSettings.ts @@ -216,7 +216,7 @@ const NoteSettingsRouter: FastifyPluginCallback = (fa * Patch noteSettings by note id */ fastify.patch<{ - Body: Pick; + Body: Pick; Params: { notePublicId: NotePublicId; }; @@ -243,6 +243,9 @@ const NoteSettingsRouter: FastifyPluginCallback = (fa isPublic: { type: 'boolean', }, + cover: { + type: 'string' + } }, }, response: { @@ -260,11 +263,12 @@ const NoteSettingsRouter: FastifyPluginCallback = (fa /** * @todo validate data */ - const { customHostname, isPublic } = request.body; + const { customHostname, isPublic, cover } = request.body; const updatedNoteSettings = await noteSettingsService.patchNoteSettingsByNoteId(noteId, { customHostname, isPublic, + cover }); if (updatedNoteSettings === null) {