update librerias
This commit is contained in:
@@ -14,7 +14,7 @@ export class StatusService {
|
||||
}
|
||||
|
||||
findById(id_status: number) {
|
||||
return this.repository.findOne({ id_status }).then((status) => {
|
||||
return this.repository.findOne({ where: { id_status } }).then((status) => {
|
||||
if (!status) throw new NotFoundException('No existe este status.');
|
||||
return status;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user