forked from eatvio/eatvio_app
refactor(diary): fix service
This commit is contained in:
@@ -16,7 +16,7 @@ class DiaryRepository {
|
||||
|
||||
Future<DiaryModel> getDiary(int diaryID) async {
|
||||
try {
|
||||
return await diaryService.getDiary(diaryID);
|
||||
return (await diaryService.getDiary(diaryID))['diary']!;
|
||||
} catch (e) {
|
||||
rethrow;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user