|
@@ -3,6 +3,7 @@ import { ModalController, NavController } from '@ionic/angular';
|
|
|
import { FilmDetailsModalComponent } from '../film-details-modal/film-details-modal.component';
|
|
|
import { BookService } from 'src/modules/server/book.serve';
|
|
|
import { ActivatedRoute } from '@angular/router';
|
|
|
+import Parse from 'parse';
|
|
|
|
|
|
@Component({
|
|
|
selector: 'app-book',
|
|
@@ -52,7 +53,7 @@ export class BookPage implements OnInit {
|
|
|
film.save()
|
|
|
}
|
|
|
async checkExists(film:Parse.Object){
|
|
|
- let query = new Parse.Query("FilmRating");
|
|
|
+ let query = new Parse.Query("LQLBookRating");
|
|
|
query.equalTo("user",Parse.User.current()?.toPointer())
|
|
|
query.equalTo("book",film?.toPointer())
|
|
|
return await query.first()
|