feat(secret-ref): removed migration field unset op, refactored service token scope check to a utility fn

This commit is contained in:
akhilmhdh
2023-07-06 20:01:46 +05:30
parent 5599132efe
commit 5aba0c60b8
4 changed files with 45 additions and 66 deletions
-3
View File
@@ -446,9 +446,6 @@ export const backfillServiceTokenMultiScope = async () => {
$set: {
scopes: [{ environment: "$environment", secretPath: "$secretPath" }]
}
},
{
$unset: ["environment", "secretPath"]
}
]
);