From 85ac133d00d59dcc29b09e54588982f36d403326 Mon Sep 17 00:00:00 2001 From: Bernat Exposito Domenech Date: Thu, 5 Mar 2020 15:01:03 +0100 Subject: [PATCH] update db test --- .../10161-postValentineDay/00-workerTimeControlCheck.sql | 2 +- db/tests/vn/workerTimeControlCheck.spec.js | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/db/changes/10161-postValentineDay/00-workerTimeControlCheck.sql b/db/changes/10161-postValentineDay/00-workerTimeControlCheck.sql index 19cd9c4e9d..31bc4922bc 100644 --- a/db/changes/10161-postValentineDay/00-workerTimeControlCheck.sql +++ b/db/changes/10161-postValentineDay/00-workerTimeControlCheck.sql @@ -78,7 +78,7 @@ BEGIN WHERE td.tabletFk = vTabletFk AND wtcu.userFk = vUserFk ) = 0 THEN -- ENVIAMOS CORREO AL BOSSFK - SELECT CONCAT(vUserName,' No a podido fichar por el siguiente problema: ',"No perteneces a este departamento.") INTO vBody; + SELECT CONCAT(vUserName,' No ha podido fichar por el siguiente problema: ',"No perteneces a este departamento.") INTO vBody; CALL vn.mail_insert(vTo,vTo,'error al fichar',vBody); CALL util.throw("No perteneces a este departamento."); END IF; diff --git a/db/tests/vn/workerTimeControlCheck.spec.js b/db/tests/vn/workerTimeControlCheck.spec.js index 8c365417c9..dc55c66fbb 100644 --- a/db/tests/vn/workerTimeControlCheck.spec.js +++ b/db/tests/vn/workerTimeControlCheck.spec.js @@ -453,12 +453,8 @@ fdescribe('worker workerTimeControl_check()', () => { (?,TIMESTAMPADD(HOUR,-232,NOW()),0,"out"), (?,TIMESTAMPADD(HOUR,-264,NOW()),0,"in"), (?,TIMESTAMPADD(HOUR,-256,NOW()),0,"out"), - (?,TIMESTAMPADD(HOUR,-288,NOW()),0,"in"), - (?,TIMESTAMPADD(HOUR,-280,NOW()),0,"out"), - (?,TIMESTAMPADD(HOUR,-312,NOW()),0,"in"), - (?,TIMESTAMPADD(HOUR,-304,NOW()),0,"out")`, [ - workerIdBreak12Hours, - workerIdBreak12Hours, + (?,TIMESTAMPADD(HOUR,-289,NOW()),0,"in"), + (?,TIMESTAMPADD(HOUR,-280,NOW()),0,"out")`, [ workerIdBreak12Hours, workerIdBreak12Hours, workerIdBreak12Hours,