diff --git a/backend/src/services/SecretImportService.ts b/backend/src/services/SecretImportService.ts index 56c600610..8892cdb31 100644 --- a/backend/src/services/SecretImportService.ts +++ b/backend/src/services/SecretImportService.ts @@ -54,6 +54,14 @@ export const getAllImportedSecrets = async ( type: "shared" } }, + { + $lookup: { + from: "tags", // note this is the name of the collection in the database, not the Mongoose model name + localField: "tags", + foreignField: "_id", + as: "tags" + } + }, { $group: { _id: {