added cancel buypoints

This commit is contained in:
Mohamed Nouffer
2023-09-15 17:19:26 +05:30
parent a2b055fe8b
commit f760294a39
3 changed files with 31 additions and 4 deletions

View File

@ -262,6 +262,20 @@ class DatabaseHelper{
return res;
}
Future<int> updateCancelBuyPoint(Destination destination)async {
print("---- updating puypint image in db -----");
Database db = await instance.database;
Map<String, dynamic> row = {
"buy_point": 0
};
return await db.update(
"destination",
row,
where: 'location_id = ?',
whereArgs: [destination.location_id!]
);
}
Future<int> updateBuyPoint(Destination destination, String imageUrl)async {
print("---- updating puypint image in db -----");
Database db = await instance.database;