completed migrating data scope from user to workspace
This commit is contained in:
@@ -125,8 +125,12 @@ class ReceiptController extends ChangeNotifier {
|
||||
|
||||
Future<ApiResponse<TransactionModel>> getReceiptData(String id) async {
|
||||
setLoading(true);
|
||||
|
||||
final prefs = await SharedPreferences.getInstance();
|
||||
try {
|
||||
Map<String, dynamic> response = await http.get('/public/transaction/$id');
|
||||
Map<String, dynamic> response = await http.get(
|
||||
'/public/transaction/$id?workspaceId=${prefs.getString("workspaceId")}',
|
||||
);
|
||||
final transaction = TransactionModel.fromJson(response);
|
||||
model.transaction = transaction;
|
||||
setLoading(false);
|
||||
|
||||
Reference in New Issue
Block a user