Allow new channel types

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