completed migrating data scope from user to workspace
This commit is contained in:
@@ -66,7 +66,7 @@ class HistoryController extends ChangeNotifier {
|
||||
}
|
||||
_safeNotify();
|
||||
|
||||
params['partyType'] = 'INDIVIDUAL';
|
||||
params['partyType'] = 'INDIVIDUAL,GROUP';
|
||||
|
||||
try {
|
||||
Map<String, dynamic> response = await http.get(
|
||||
@@ -107,7 +107,7 @@ class HistoryController extends ChangeNotifier {
|
||||
}
|
||||
|
||||
Future<void> searchTransactions(
|
||||
String userId, {
|
||||
String workspaceId, {
|
||||
String? search,
|
||||
String? status,
|
||||
String? type,
|
||||
@@ -116,7 +116,7 @@ class HistoryController extends ChangeNotifier {
|
||||
model.statusFilter = status;
|
||||
model.typeFilter = type;
|
||||
final params = <String, String>{
|
||||
'userId': userId,
|
||||
'workspaceId': workspaceId,
|
||||
'page': '0',
|
||||
'size': '20',
|
||||
'sort': 'createdAt,desc',
|
||||
@@ -138,12 +138,12 @@ class HistoryController extends ChangeNotifier {
|
||||
await getTransactions(params);
|
||||
}
|
||||
|
||||
Future<void> loadNextPage(String userId) async {
|
||||
Future<void> loadNextPage(String workspaceId) async {
|
||||
if (model.isLoadingMore || model.currentPage + 1 >= model.totalPages) {
|
||||
return;
|
||||
}
|
||||
final params = <String, String>{
|
||||
'userId': userId,
|
||||
'workspaceId': workspaceId,
|
||||
'page': (model.currentPage + 1).toString(),
|
||||
'size': '20',
|
||||
'sort': 'createdAt,desc',
|
||||
|
||||
Reference in New Issue
Block a user