Updated announcement fetching to new response schema

This commit is contained in:
2023-08-08 12:07:12 +03:00
parent e1e1244b3a
commit c52a623907
3 changed files with 6 additions and 12 deletions

View File

@ -6,7 +6,7 @@ type AnnouncementResponse = {
user_id: number,
name: string,
category: Category,
best_by: number,
best_by: string,
address: string,
longtitude: number,
latitude: number,
@ -23,7 +23,7 @@ const isAnnouncementResponse = (obj: unknown): obj is AnnouncementResponse => (
'user_id': 'number',
'name': 'string',
'category': isCategory,
'best_by': 'number',
'best_by': 'string',
'address': 'string',
'longtitude': 'number',
'latitude': 'number',