Removed MetaData.ts public from encryption

This commit is contained in:
2023-08-03 22:51:38 +02:00
parent 654d8c65ee
commit 8a8ce09c0d

View File

@ -41,7 +41,7 @@ const MetaDataSchema = new Schema<IMetaData>({
});
MetaDataSchema.plugin(fieldEncryption, {
fields: ["projectId", "type", "name", "description", "defaultValue", "public"],
fields: ["projectId", "type", "name", "description", "defaultValue"],
secret: process.env.ENC_KEY,
saltGenerator: () => process.env.SIG_KEY,
});