Worker calendar - Add absence #336
|
@ -2,7 +2,7 @@ const UserError = require('vn-loopback/util/user-error');
|
||||||
|
|
||||||
module.exports = Self => {
|
module.exports = Self => {
|
||||||
Self.remoteMethodCtx('createAbsence', {
|
Self.remoteMethodCtx('createAbsence', {
|
||||||
description: 'Returns an array of absences from an specified worker',
|
description: 'Creates a new worker absence',
|
||||||
accepts: [{
|
accepts: [{
|
||||||
arg: 'id',
|
arg: 'id',
|
||||||
type: 'Number',
|
type: 'Number',
|
||||||
|
|
|
@ -2,7 +2,7 @@ const UserError = require('vn-loopback/util/user-error');
|
||||||
|
|
||||||
module.exports = Self => {
|
module.exports = Self => {
|
||||||
Self.remoteMethodCtx('deleteAbsence', {
|
Self.remoteMethodCtx('deleteAbsence', {
|
||||||
description: 'Returns an array of absences from an specified worker',
|
description: 'Deletes a worker absence',
|
||||||
accepts: [{
|
accepts: [{
|
||||||
arg: 'id',
|
arg: 'id',
|
||||||
type: 'Number',
|
type: 'Number',
|
||||||
|
|
|
@ -2,7 +2,7 @@ const UserError = require('vn-loopback/util/user-error');
|
||||||
|
|
||||||
module.exports = Self => {
|
module.exports = Self => {
|
||||||
Self.remoteMethodCtx('updateAbsence', {
|
Self.remoteMethodCtx('updateAbsence', {
|
||||||
description: 'Returns an array of absences from an specified worker',
|
description: 'Updates a worker absence',
|
||||||
accepts: [{
|
accepts: [{
|
||||||
arg: 'id',
|
arg: 'id',
|
||||||
type: 'Number',
|
type: 'Number',
|
||||||
|
|
Loading…
Reference in New Issue