update processing,customer and staff
This commit is contained in:
@@ -222,8 +222,7 @@ class PackageModel extends BaseModel {
|
||||
.where("is_deleted", isEqualTo: false)
|
||||
.get(const GetOptions(source: Source.server));
|
||||
packages = snaps.docs.map((documentSnapshot) {
|
||||
var p = Package.fromMap(
|
||||
documentSnapshot.data as Map<String, dynamic>, documentSnapshot.id);
|
||||
var p = Package.fromMap(documentSnapshot.data(), documentSnapshot.id);
|
||||
return p;
|
||||
}).toList();
|
||||
} catch (e) {
|
||||
@@ -271,7 +270,7 @@ class PackageModel extends BaseModel {
|
||||
package.photoUrls = package.photoUrls == null ? [] : package.photoUrls;
|
||||
String path = Path.join(pkg_files_path);
|
||||
List<String> urls = await uploadFiles(path, files);
|
||||
package.photoUrls =urls;
|
||||
package.photoUrls = urls;
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user