From 1fbbbab60262d203fa985c76f5de56a649909055 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Mon, 16 Jan 2023 08:43:47 -0800 Subject: [PATCH] Allow new channel types --- backend/src/ee/models/log.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/ee/models/log.ts b/backend/src/ee/models/log.ts index 1fdd52710..b9eadc016 100644 --- a/backend/src/ee/models/log.ts +++ b/backend/src/ee/models/log.ts @@ -41,17 +41,17 @@ const logSchema = new Schema( ref: 'Action', required: true }], - channel: { + channel: { type: String, - enum: ['web', 'cli', 'auto'], + enum: ['web', 'cli', 'auto', 'k8-operator', 'other'], required: true }, ipAddress: { type: String } }, { - timestamps: true - } + timestamps: true +} ); const Log = model('Log', logSchema);