completed migrating data scope from user to workspace

This commit is contained in:
2026-06-22 22:10:38 +02:00
parent 62c7f53de0
commit ae2705363a
37 changed files with 918 additions and 221 deletions

View File

@@ -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',