se agrego drive correctamente

This commit is contained in:
evenegas
2026-01-07 13:41:11 -06:00
parent 2ed657caf2
commit 0cb91d8b9e
3 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -98,7 +98,8 @@ export class DriveService {
supportsAllDrives: true,
});
fs.unlinkSync(filePath);
console.log('Archivo subido a Drive, ID:', res.data.id);
return res.data.id!;
} catch (err) {
throw new InternalServerErrorException(
+1
View File
@@ -135,6 +135,7 @@ export class ServicioController {
@Body('data') dataJson: string,
) {
const body = JSON.parse(dataJson);
console.log('file:', file)
return this.servicioService.cartaTermino(body.idServicio, file);
}
+4 -1
View File
@@ -286,10 +286,13 @@ export class ServicioService {
1000,
)}`;
const servicio = await this.servicioRepo.findOne({
where: { idServicio },
relations: ['status'],
});
console.log('Servicio encontrado:', servicio);
if (!servicio) {
throw new NotFoundException('Este servicio no existe.');
}