feat: implement patch method in ApiClient and update recipe update logic in RecipeRepository
This commit is contained in:
@@ -64,7 +64,7 @@ class RecipeRepository {
|
||||
{String? token}) async {
|
||||
try {
|
||||
final data =
|
||||
await _api.putJson('/recipes/$id', body: body, token: token);
|
||||
await _api.patchJson('/recipes/$id', body: body, token: token);
|
||||
if (data is! Map<String, dynamic>) {
|
||||
throw const ApiException(
|
||||
type: ApiErrorType.unknown, message: 'Ogiltigt svar fran servern.');
|
||||
|
||||
Reference in New Issue
Block a user