Remove tags from secrets when tag is deleted

This commit is contained in:
Maidul Islam
2023-02-10 19:33:40 -08:00
parent 1c3488f8db
commit 31293bbe06
2 changed files with 10 additions and 1 deletions
+3
View File
@@ -109,6 +109,9 @@ const secretSchema = new Schema<ISecret>(
}
);
secretSchema.index({ tags: 1 }, { background: true })
const Secret = model<ISecret>('Secret', secretSchema);
export default Secret;