refactor(diary): fix service

This commit is contained in:
mso7nueh
2024-07-12 14:33:18 +03:00
parent 551debd450
commit ed74fd99f0
5 changed files with 40 additions and 54 deletions

View File

@@ -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;
}