add tags support in secret imports

This commit is contained in:
Maidul Islam
2023-08-24 17:21:14 -04:00
parent 50977cf788
commit a1f08b064e

View File

@@ -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: {