Extensive mypy checking.

This commit is contained in:
2021-11-21 12:18:26 +05:30
parent 529e50b3ba
commit 9d088aa95e
72 changed files with 572 additions and 496 deletions

View File

@ -41,19 +41,19 @@ export class AccountService {
.pipe(catchError(this.log.handleError(serviceName, 'list'))) as Observable<Account[]>;
}
save(account: Account): Observable<Account> {
save(account: Account): Observable<null> {
return this.http
.post<Account>(`${url}`, account)
.pipe(catchError(this.log.handleError(serviceName, 'save'))) as Observable<Account>;
.post<null>(`${url}`, account)
.pipe(catchError(this.log.handleError(serviceName, 'save'))) as Observable<null>;
}
update(account: Account): Observable<Account> {
update(account: Account): Observable<null> {
return this.http
.put<Account>(`${url}/${account.id}`, account)
.pipe(catchError(this.log.handleError(serviceName, 'update'))) as Observable<Account>;
.put<null>(`${url}/${account.id}`, account)
.pipe(catchError(this.log.handleError(serviceName, 'update'))) as Observable<null>;
}
saveOrUpdate(account: Account): Observable<Account> {
saveOrUpdate(account: Account): Observable<null> {
if (!account.id) {
return this.save(account);
}