Browse Source

reversed order in report and wallet statement

pull/1/head
gme_2 6 years ago
parent
commit
48d76acf63
  1. 3
      GMERemittance/Module/TransactionHistory/Application Logic/Interactor/TransactionHistoryInteractor.swift
  2. 3
      GMERemittance/Module/WalletStatement/Application Logic/Interactor/WalletStatementInteractor.swift

3
GMERemittance/Module/TransactionHistory/Application Logic/Interactor/TransactionHistoryInteractor.swift

@ -43,7 +43,8 @@ extension TransactionHistoryInteractor: TransactionHistoryInteractorInput {
let parameters = (param.isEmpty ?? true) ? nil : param
self.service.fetchTransactionHistories(user: userName, param: parameters, success: { (model) in
self.output?.show(models: model)
let _model = Array(model.reversed())
self.output?.show(models: _model)
}) { (error) in
self.output?.show(error: error)
}

3
GMERemittance/Module/WalletStatement/Application Logic/Interactor/WalletStatementInteractor.swift

@ -42,7 +42,8 @@ extension WalletStatementInteractor: WalletStatementInteractorInput {
let parameters = (param.isEmpty ?? true) ? nil : param
self.service.fetchWalletStatement(user: userName, param: parameters, success: { (model) in
self.output?.show(models: model)
let _model = Array(model.reversed())
self.output?.show(models: _model)
}) { (error) in
self.output?.show(error: error)
}

Loading…
Cancel
Save