update logs

This commit is contained in:
Mohamed Nouffer
2023-09-21 15:41:23 +05:30
parent 4db56e9c0f
commit 7fdb6c05ee
6 changed files with 22 additions and 7 deletions

View File

@ -189,6 +189,7 @@ class DestinationController extends GetxController {
if (d.cp == -1 && DateTime.now().difference(last_goal_at).inHours >= 24) {
chekcs = 1;
//start
print("~~~~ calling start ~~~~");
print("---- in start -----");
chekcs = 1;
is_in_checkin.value = true;
@ -656,6 +657,7 @@ class DestinationController extends GetxController {
Future<void> makeCheckin(
Destination destination, bool action, String imageurl) async {
print("~~~~ calling checkin function ~~~~");
print(
"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ressssss ${destination.sub_loc_id}@@@@@@@@@@@");
DatabaseHelper db = DatabaseHelper.instance;
@ -666,6 +668,7 @@ class DestinationController extends GetxController {
destination.checkedin = true;
destination.checkin_image = imageurl;
await db.insertDestination(destination);
print("~~~~ inserted into db ~~~~");
}
await GallerySaver.saveImage(imageurl);