Browse Source

chore: sort function in alphabetical order

pull/2455/head
Dhoni77 2 years ago
parent
commit
03360852c0
  1. 4
      apps/client/src/app/pages/accounts/accounts-page.component.ts
  2. 16
      apps/client/src/app/services/data.service.ts

4
apps/client/src/app/pages/accounts/accounts-page.component.ts

@ -295,10 +295,6 @@ export class AccountsPageComponent implements OnDestroy, OnInit {
const { accountIdFrom, accountIdTo, balance }: TransferBalanceDto =
data?.account;
console.log(
`Transfer cash balance of ${balance} from account ${accountIdFrom} to account ${accountIdTo}`
);
this.dataService
.postTransferAccountBalance({
accountIdFrom,

16
apps/client/src/app/services/data.service.ts

@ -472,6 +472,14 @@ export class DataService {
return this.http.post<OrderModel>(`/api/v1/account`, aAccount);
}
public postBenchmark(benchmark: UniqueAsset) {
return this.http.post(`/api/v1/benchmark`, benchmark);
}
public postOrder(aOrder: CreateOrderDto) {
return this.http.post<OrderModel>(`/api/v1/order`, aOrder);
}
public postTransferAccountBalance({
accountIdFrom,
accountIdTo,
@ -484,14 +492,6 @@ export class DataService {
});
}
public postBenchmark(benchmark: UniqueAsset) {
return this.http.post(`/api/v1/benchmark`, benchmark);
}
public postOrder(aOrder: CreateOrderDto) {
return this.http.post<OrderModel>(`/api/v1/order`, aOrder);
}
public postUser() {
return this.http.post<UserItem>(`/api/v1/user`, {});
}

Loading…
Cancel
Save