From 87fa66fe8c8949031e8f2f726e3233ece5e9bdb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20S=C3=A1nchez?= Date: Thu, 16 Jul 2020 11:45:44 +0200 Subject: [PATCH] Updated methods description --- modules/worker/back/methods/worker/createAbsence.js | 2 +- modules/worker/back/methods/worker/deleteAbsence.js | 2 +- modules/worker/back/methods/worker/updateAbsence.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/worker/back/methods/worker/createAbsence.js b/modules/worker/back/methods/worker/createAbsence.js index 9c65aa66a..28a2b9d9d 100644 --- a/modules/worker/back/methods/worker/createAbsence.js +++ b/modules/worker/back/methods/worker/createAbsence.js @@ -2,7 +2,7 @@ const UserError = require('vn-loopback/util/user-error'); module.exports = Self => { Self.remoteMethodCtx('createAbsence', { - description: 'Returns an array of absences from an specified worker', + description: 'Creates a new worker absence', accepts: [{ arg: 'id', type: 'Number', diff --git a/modules/worker/back/methods/worker/deleteAbsence.js b/modules/worker/back/methods/worker/deleteAbsence.js index d5dbfa00d..ea156d7eb 100644 --- a/modules/worker/back/methods/worker/deleteAbsence.js +++ b/modules/worker/back/methods/worker/deleteAbsence.js @@ -2,7 +2,7 @@ const UserError = require('vn-loopback/util/user-error'); module.exports = Self => { Self.remoteMethodCtx('deleteAbsence', { - description: 'Returns an array of absences from an specified worker', + description: 'Deletes a worker absence', accepts: [{ arg: 'id', type: 'Number', diff --git a/modules/worker/back/methods/worker/updateAbsence.js b/modules/worker/back/methods/worker/updateAbsence.js index e35eafa0c..719bca7e4 100644 --- a/modules/worker/back/methods/worker/updateAbsence.js +++ b/modules/worker/back/methods/worker/updateAbsence.js @@ -2,7 +2,7 @@ const UserError = require('vn-loopback/util/user-error'); module.exports = Self => { Self.remoteMethodCtx('updateAbsence', { - description: 'Returns an array of absences from an specified worker', + description: 'Updates a worker absence', accepts: [{ arg: 'id', type: 'Number',