@runnerpro/backend 1.21.2 → 1.21.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"estructuraWorkout.d.ts","sourceRoot":"","sources":["../../../../src/workout/estructuraWorkout.ts"],"names":[],"mappings":"AAuCA,QAAA,MAAM,mBAAmB,YAAa,GAAG,cAAc,GAAG,QAiCzD,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,wBAAwB,cAAqB,GAAG,kBAkBrD,CAAC;
|
|
1
|
+
{"version":3,"file":"estructuraWorkout.d.ts","sourceRoot":"","sources":["../../../../src/workout/estructuraWorkout.ts"],"names":[],"mappings":"AAuCA,QAAA,MAAM,mBAAmB,YAAa,GAAG,cAAc,GAAG,QAiCzD,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,wBAAwB,cAAqB,GAAG,kBAkBrD,CAAC;AAkPF,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -11,7 +11,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.saveDoneStructuraWorkout = exports.getStructuraWorkout = void 0;
|
|
13
13
|
const db_1 = require("../db");
|
|
14
|
-
const sendMail_1 = require("../sendMail");
|
|
15
14
|
const common_1 = require("@runnerpro/common");
|
|
16
15
|
const calculateZone = (values) => {
|
|
17
16
|
const percentage = Number(values.pacePercentage);
|
|
@@ -127,12 +126,7 @@ const saveDoneStructuraWorkoutWatch = (idWorkout, streamData, laps, workout, est
|
|
|
127
126
|
// Cualquier otra desviación es anómala (faltan laps en medio, doble extra,
|
|
128
127
|
// etc.) y se reporta para auditoría manual.
|
|
129
128
|
if (numPasos !== numLaps && numPasos !== numLaps + 1 && numLaps !== numPasos + 1) {
|
|
130
|
-
return
|
|
131
|
-
title: 'Estructura workout: laps no coinciden con pasos',
|
|
132
|
-
subject: 'Dedup cross-proveedor - Error saving steps structure workout',
|
|
133
|
-
body: JSON.stringify({ idWorkout, laps, estructura }),
|
|
134
|
-
to: ['david.jimenez@runnerpro.app'],
|
|
135
|
-
});
|
|
129
|
+
return;
|
|
136
130
|
}
|
|
137
131
|
for (let i = 0; i < estructura.length; i++) {
|
|
138
132
|
const row = estructura[i];
|