bring back tags to secret version

This commit is contained in:
Maidul Islam
2023-06-05 23:12:48 -07:00
parent c0fbe82ecb
commit e28d0cbace
3 changed files with 27 additions and 1 deletions
+14
View File
@@ -348,6 +348,20 @@ export const backfillSecretFolders = async () => {
}
);
// Back fill because tags were missing in secret versions
await SecretVersion.updateMany(
{
tags: {
$exists: false,
},
},
{
$set: {
tags: [],
},
}
);
let secretSnapshots = await SecretSnapshot.find({
environment: {
$exists: false,