First implementation of History for Movies. However, nothing is returned from the Database query misteriously.

This commit is contained in:
Leonardo Galli
2017-01-02 20:15:13 +01:00
parent 0e02171938
commit 2a932fe7e8
10 changed files with 120 additions and 20 deletions
+5 -1
View File
@@ -55,11 +55,15 @@ var Collection = PageableCollection.extend({
initialize : function(options) {
delete this.queryParams.episodeId;
delete this.queryParams.movieId;
if (options) {
if (options.episodeId) {
this.queryParams.episodeId = options.episodeId;
}
if (options.movieId) {
this.queryParams.movieId = options.movieId;
}
}
},
@@ -80,4 +84,4 @@ Collection = AsFilteredCollection.call(Collection);
Collection = AsSortedCollection.call(Collection);
Collection = AsPersistedStateCollection.call(Collection);
module.exports = Collection;
module.exports = Collection;