fpavon-ee-shared 1.0.41 → 1.0.42
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.
|
@@ -8,5 +8,5 @@ export declare class DocumentosUseCase {
|
|
|
8
8
|
crearDocumentoByBuffer: (file: any) => Promise<import("../domain/documentoFTP").IDocumentoFTP>;
|
|
9
9
|
getDocumentoAdjunto: (uuid: string) => Promise<DocumentoFTP>;
|
|
10
10
|
deleteDocumento: (uuid: any) => Promise<Boolean>;
|
|
11
|
-
generarPinDeFirmaUseCase: (registrosDeFirma: any) => Promise<
|
|
11
|
+
generarPinDeFirmaUseCase: (registrosDeFirma: any) => Promise<any>;
|
|
12
12
|
}
|
|
@@ -54,7 +54,8 @@ class DocumentosUseCase {
|
|
|
54
54
|
// 5. Seleccionar un PIN al azar de la lista de pines libres
|
|
55
55
|
const indiceAleatorio = Math.floor(Math.random() * pinsLibres.length);
|
|
56
56
|
registrosDeFirma.Pin = pinsLibres[indiceAleatorio];
|
|
57
|
-
|
|
57
|
+
yield this.documentosRepository.insertPinDeFirma(registrosDeFirma);
|
|
58
|
+
return registrosDeFirma;
|
|
58
59
|
});
|
|
59
60
|
}
|
|
60
61
|
bufferToStream(buffer) {
|
|
@@ -62,8 +62,8 @@ export class DocumentosUseCase{
|
|
|
62
62
|
const indiceAleatorio = Math.floor(Math.random() * pinsLibres.length);
|
|
63
63
|
registrosDeFirma.Pin = pinsLibres[indiceAleatorio];
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
await this.documentosRepository.insertPinDeFirma(registrosDeFirma)
|
|
66
|
+
return registrosDeFirma;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
}
|