Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
hari01584 committed Aug 26, 2022
1 parent c4a6515 commit 889bba7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ android {
applicationId "com.shark.mera_aadhar"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration.
minSdkVersion 19
minSdkVersion 20
targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
6 changes: 5 additions & 1 deletion lib/firebase/booking_db.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ class BookingDB {
CollectionReference _collectionRef =
FirebaseFirestore.instance.collection('bookings');

Future<void> addNewBooking(Booking booking) {
Future<void> addNewBooking(Booking booking) async {
Booking? bookin = await getMyCurrentBooking();
if(booking != null){
print("already open request");
}
return _collectionRef
.add(booking.toJson())
.then((value) => print("Booking entry added"))
Expand Down

0 comments on commit 889bba7

Please sign in to comment.