Update Saqel Platform: 2026-09-08 23:44:33
This commit is contained in:
@@ -425,8 +425,9 @@ class TeacherRepository {
|
||||
);
|
||||
|
||||
final decoded = json.decode(response.body) as Map<String, dynamic>;
|
||||
if (response.statusCode == 200 || response.statusCode == 201)
|
||||
if (response.statusCode == 200 || response.statusCode == 201 || response.statusCode == 422) {
|
||||
return decoded;
|
||||
}
|
||||
throw StateError(
|
||||
decoded['message']?.toString() ?? 'رفض الخادم رفع الحصة.');
|
||||
} on StateError {
|
||||
|
||||
Reference in New Issue
Block a user