carga masiva equipos lista

This commit is contained in:
2022-08-12 15:42:18 -05:00
parent ebd15fd205
commit 82cc556cd8
8 changed files with 250 additions and 222 deletions
+4 -6
View File
@@ -28,12 +28,10 @@ export class UploadFileController {
const path = file ? `${file.destination}/${file.filename}` : null;
if (!file) throw new BadRequestException('No se mandó ningún archivo.');
return this.uploadFileService
.createEquipos(path, parseInt(query.id_institucion))
.then((res) => {
fs.unlink(path, (err) => {});
return res;
});
return this.uploadFileService.createEquipos(
path,
parseInt(query.id_institucion),
);
}
@Post('carga-masiva-usuarios')