Added movie page. Added stash button to movies.

This commit is contained in:
2024-03-25 02:08:09 +01:00
parent 21674b77b6
commit a73272f2bb
19 changed files with 1241 additions and 274 deletions

View File

@@ -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);
}