forked from eatvio/eatvio_app
fix: youtube_url => video_url
This commit is contained in:
@@ -13,7 +13,7 @@ class BlogPostRepository {
|
||||
|
||||
Future<void> createBlogPost(
|
||||
String? title,
|
||||
String? youtubeURL,
|
||||
String? videoUrl,
|
||||
String? description,
|
||||
XFile? image,
|
||||
) async {
|
||||
@@ -21,7 +21,7 @@ class BlogPostRepository {
|
||||
'title': title,
|
||||
'description': description,
|
||||
'state': 'active',
|
||||
'youtube_url': youtubeURL,
|
||||
'video_url': videoUrl,
|
||||
'image': image != null ? await MultipartFile.fromFile((await ImageCompressUtility.compressFile(File(image.path))).path, filename: image.name) : null,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user