Skip to content

Commit

Permalink
CA: Update npm packages, some major version updates. Remove use of np…
Browse files Browse the repository at this point in the history
…m option legacy-peer-deps (#2250)

* CA: Update npm packages, some major version updates. Remove use of npm option legacy-peer-deps
  • Loading branch information
chrieinv authored Sep 7, 2023
1 parent 397b841 commit 1a8424e
Show file tree
Hide file tree
Showing 24 changed files with 9,663 additions and 9,498 deletions.
2 changes: 1 addition & 1 deletion sourcecode/apis/contentauthor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ WORKDIR /app
RUN npm i -g node-gyp

COPY package.json package-lock.json ./
RUN npm i --legacy-peer-deps
RUN npm i

COPY --from=composer_deps /app/vendor/ckeditor/ckeditor vendor/ckeditor/ckeditor
COPY --from=composer_deps /app/vendor/h5p vendor/h5p
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ private function buildSearchQuery($queryObject): ?array
if (empty($queryObject)) {
return null;
}
$queryObject = json_decode($queryObject, true);
if (empty($queryObject['query'])) {
unset($queryObject['query']);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,12 @@ private function buildSearchQuery($queryObject)
}

$query = [];
$queryObject = json_decode($queryObject);
if (!empty($queryObject->query)) {
$query['query'] = sprintf('text:%s', $queryObject->query);
if (!empty($queryObject['query'])) {
$query['query'] = sprintf('text:%s', $queryObject['query']);
}
if (!empty($queryObject->limit) && isset($queryObject->offset)) {
$query['limit'] = $queryObject->limit;
$query['offset'] = $queryObject->offset;
if (!empty($queryObject['limit']) && isset($queryObject['offset'])) {
$query['limit'] = $queryObject['limit'];
$query['offset'] = $queryObject['offset'];
}
return $query;
}
Expand Down
Loading

0 comments on commit 1a8424e

Please sign in to comment.