Add feedback type for anonymous feedbacks

This commit is contained in:
Neeraj Gupta 2023-03-15 18:35:11 +05:30
parent 5a6cddf15e
commit 4cdfd5d7ac
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -116,10 +116,14 @@ class UserService {
}
}
Future<void> sendFeedback(BuildContext context, String feedback) async {
Future<void> sendFeedback(
BuildContext context,
String feedback, {
String type = "SubCancellation",
}) async {
await _dio.post(
_config.getHttpEndpoint() + "/anonymous/feedback",
data: {"feedback": feedback},
data: {"feedback": feedback, "type": "type"},
);
}