Allow new channel types

This commit is contained in:
Maidul Islam
2023-01-16 08:45:21 -08:00
parent 89697df85e
commit 1fbbbab602
+4 -4
View File
@@ -41,17 +41,17 @@ const logSchema = new Schema<ILog>(
ref: 'Action', ref: 'Action',
required: true required: true
}], }],
channel: { channel: {
type: String, type: String,
enum: ['web', 'cli', 'auto'], enum: ['web', 'cli', 'auto', 'k8-operator', 'other'],
required: true required: true
}, },
ipAddress: { ipAddress: {
type: String type: String
} }
}, { }, {
timestamps: true timestamps: true
} }
); );
const Log = model<ILog>('Log', logSchema); const Log = model<ILog>('Log', logSchema);