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