From 90b079a0ac89cc1706a3ff90dad9d7b6374fc091 Mon Sep 17 00:00:00 2001 From: vicent Date: Fri, 8 Apr 2022 12:25:06 +0200 Subject: [PATCH] refactor: description back routes --- modules/claim/back/methods/claim/deleteOldFiles.js | 2 +- modules/claim/back/methods/claim/downloadFile.js | 2 +- modules/claim/back/methods/claim/uploadFile.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/claim/back/methods/claim/deleteOldFiles.js b/modules/claim/back/methods/claim/deleteOldFiles.js index 9a789eeb5..292d980e3 100644 --- a/modules/claim/back/methods/claim/deleteOldFiles.js +++ b/modules/claim/back/methods/claim/deleteOldFiles.js @@ -3,7 +3,7 @@ const path = require('path'); module.exports = Self => { Self.remoteMethodCtx('deleteOldFiles', { - description: 'Upload and attach a document', + description: 'Delete files that are 6 months old from "./storage/claim"', accessType: 'WRITE', returns: { type: 'object', diff --git a/modules/claim/back/methods/claim/downloadFile.js b/modules/claim/back/methods/claim/downloadFile.js index b7af03715..750356b0b 100644 --- a/modules/claim/back/methods/claim/downloadFile.js +++ b/modules/claim/back/methods/claim/downloadFile.js @@ -2,7 +2,7 @@ const UserError = require('vn-loopback/util/user-error'); module.exports = Self => { Self.remoteMethodCtx('downloadFile', { - description: 'Get the user image', + description: 'Get the claim file', accessType: 'READ', accepts: [ { diff --git a/modules/claim/back/methods/claim/uploadFile.js b/modules/claim/back/methods/claim/uploadFile.js index a7951b677..90ab9c078 100644 --- a/modules/claim/back/methods/claim/uploadFile.js +++ b/modules/claim/back/methods/claim/uploadFile.js @@ -4,7 +4,7 @@ const path = require('path'); module.exports = Self => { Self.remoteMethodCtx('uploadFile', { - description: 'Upload and attach a document', + description: 'Upload and attach a file', accessType: 'WRITE', accepts: [{ arg: 'id',