@runnerpro/backend 1.12.5 → 1.12.7
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.
|
@@ -316,7 +316,6 @@ const getThumbnailFromVideo = (videoPath) => __awaiter(void 0, void 0, void 0, f
|
|
|
316
316
|
const buffer = fs_1.default.readFileSync(outputPath);
|
|
317
317
|
// Limpiar archivo temporal
|
|
318
318
|
fs_1.default.unlinkSync(outputPath);
|
|
319
|
-
console.log(`Thumbnail generado: ${buffer.length} bytes`);
|
|
320
319
|
resolve(buffer);
|
|
321
320
|
}
|
|
322
321
|
catch (error) {
|
|
@@ -352,8 +351,7 @@ const getVideoDuration = (videoPath) => __awaiter(void 0, void 0, void 0, functi
|
|
|
352
351
|
if (!duration || isNaN(duration)) {
|
|
353
352
|
throw new Error('No se pudo obtener la duración del video');
|
|
354
353
|
}
|
|
355
|
-
const durationInSeconds = parseFloat(duration);
|
|
356
|
-
console.log(`Duración del video: ${durationInSeconds} segundos`);
|
|
354
|
+
const durationInSeconds = Math.round(parseFloat(duration));
|
|
357
355
|
resolve(durationInSeconds);
|
|
358
356
|
}
|
|
359
357
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAkBA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SAoBpD,CAAC;
|
|
1
|
+
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../../../../src/chat/api/conversation.ts"],"names":[],"mappings":"AAkBA,QAAA,MAAM,iBAAiB,0BAA2B,GAAG,SAoBpD,CAAC;AA6XF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|