suppressions des Any

pull/4/head
Clement FERRERE 3 years ago
parent d88d864f41
commit 9b9f281cab
  1. 4
      src/app/services/agence.service.ts

@ -31,10 +31,10 @@ export class AgenceService {
return this.http.get<Agence>(this.agencesUrl+"/"+id);
}
updateAgence(agence : Agence):Observable<any>{
updateAgence(agence : Agence):Observable<Agence>{
let body = JSON.stringify(agence);
this.log(`update agence ${agence.id}`)
return this.http.put(this.agencesUrl + "/" + agence.id, body, this.httpOptions);
return this.http.put<Agence>(this.agencesUrl + "/" + agence.id, body, this.httpOptions);
}
deleteAgence(agence: Agence) {

Loading…
Cancel
Save