Added movie page. Added stash button to movies.
This commit is contained in:
@@ -442,7 +442,7 @@ async function queryManticoreSql(filters, options, _reqUser) {
|
||||
if (filters.entityId) {
|
||||
builder.whereRaw('any(entity_ids) = ?', filters.entityId);
|
||||
|
||||
/* manticore does not support OR if both left and right table are queried https://github.com/manticoresoftware/manticoresearch/issues/1978#issuecomment-2010470068
|
||||
/* manticore does not currently support OR if both left and right table are queried https://github.com/manticoresoftware/manticoresearch/issues/1978#issuecomment-2010470068
|
||||
builder.where((whereBuilder) => {
|
||||
whereBuilder
|
||||
.where('scenes.channel_id', filters.entityId)
|
||||
@@ -451,6 +451,10 @@ async function queryManticoreSql(filters, options, _reqUser) {
|
||||
*/
|
||||
}
|
||||
|
||||
if (filters.movieId) {
|
||||
builder.whereRaw('any(movie_ids) = ?', filters.movieId);
|
||||
}
|
||||
|
||||
if (typeof filters.isShowcased === 'boolean') {
|
||||
builder.where('is_showcased', filters.isShowcased);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user