carga masiva equipos lista
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user