Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cms/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ WORKDIR /app
COPY package.json /app
COPY package-lock.json /app

RUN npm ci --quiet --only=production
RUN npm ci --quiet --omit=dev --legacy-peer-deps

COPY . /app

Expand Down
8 changes: 5 additions & 3 deletions cms/models/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,12 @@ Item.schema.post("save", async function(doc, next) {
item = await keystone
.list("Item")
.model.findById(doc._id)
.populate("source")
.select(
"_id title slug url shortSummary comment resourceLinks commentUrl publicationDate updatedAt createdAt"
)
.populate({ path: "source", select: "_id title" })
.populate("evidenceType")
.populate("specialities")
.select(Item.fullResponseFields.join(" "))
.populate({ path: "specialities", select: "_id title key broaderTitle" })
.exec();
} catch (err) {
logger.error("An error occurred finding item: ", err.message);
Expand Down
Loading