@runnerpro/backend 1.21.10 → 1.21.11
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":"index.d.ts","sourceRoot":"","sources":["../../../../../src/workout/planificacionPrueba7dias/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/workout/planificacionPrueba7dias/index.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,2BAA2B,qBAAgB,GAAG,UA+DnD,CAAC;AAmIF,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -9,7 +9,6 @@ const getPlanificacionPrueba7dias5k_1 = require("./5k/getPlanificacionPrueba7dia
|
|
|
9
9
|
const getPlanificacionPrueba7dias10k_1 = require("./10k/getPlanificacionPrueba7dias10k");
|
|
10
10
|
const getPlanificacionPrueba7dias21k_1 = require("./21k/getPlanificacionPrueba7dias21k");
|
|
11
11
|
const getPlanificacionPrueba7dias42k_1 = require("./42k/getPlanificacionPrueba7dias42k");
|
|
12
|
-
const sendMail_1 = require("../../sendMail");
|
|
13
12
|
const moment_1 = __importDefault(require("moment"));
|
|
14
13
|
const common_1 = require("@runnerpro/common");
|
|
15
14
|
/**
|
|
@@ -40,13 +39,10 @@ const getPlanificacionPrueba7dias = (c, options = {}) => {
|
|
|
40
39
|
// @ts-ignore
|
|
41
40
|
workoutsBase = getWorkoutsByGoalDistance(c);
|
|
42
41
|
if (!workoutsBase || workoutsBase.length === 0) {
|
|
42
|
+
// Sin entrenamientos base para este perfil → planificación vacía. Ya no se avisa por
|
|
43
|
+
// email: el cliente queda sin workouts planificados y lo enciende la farola
|
|
44
|
+
// "plan no entregado" de Trials en el panel de agentes (>1 día de alta sin plan).
|
|
43
45
|
workoutsBase = [];
|
|
44
|
-
(0, sendMail_1.sendMail)({
|
|
45
|
-
to: ['david.jimenez@runnerpro.app'],
|
|
46
|
-
subject: 'Planificación de prueba 7 días - No hay entrenamientos',
|
|
47
|
-
body: JSON.stringify(c),
|
|
48
|
-
title: '',
|
|
49
|
-
});
|
|
50
46
|
}
|
|
51
47
|
if ((Number(c.nivelEntrenamientoFuerza) === 1 || Number(c.incluirEntrenamientoFuerza) === 1) && nDiasDisponibles >= 4) {
|
|
52
48
|
// @ts-ignore
|