getting rid of note complement WIP

This commit is contained in:
zadam
2023-05-05 16:37:39 +02:00
parent 9cdcbb3125
commit 5e1f81e53e
23 changed files with 163 additions and 90 deletions

View File

@@ -1,6 +1,13 @@
const becca = require("../../becca/becca");
const NotFoundError = require("../../errors/not_found_error");
const utils = require("../../services/utils");
const blobService = require("../../services/blob.js");
function getAttachmentBlob(req) {
const full = req.query.full === 'true';
return blobService.getBlobPojo('attachments', req.params.attachmentId, { full });
}
function getAttachments(req) {
const includeContent = req.query.includeContent === 'true';
@@ -87,6 +94,7 @@ function convertAttachmentToNote(req) {
}
module.exports = {
getAttachmentBlob,
getAttachments,
getAttachment,
saveAttachment,