🍒 Selective update through findOneAndUpdate for settings

This commit is contained in:
2021-11-23 09:37:45 -08:00
parent 6c431b300b
commit 973bbe93be
2 changed files with 64 additions and 26 deletions

View File

@@ -4,14 +4,15 @@ const paginate = require("mongoose-paginate-v2");
const SettingsScehma = mongoose.Schema({
directConnect: {
client: {
name: String,
version: String,
airdcppUserSettings: Object,
hostname: String,
protocol: String,
username: String,
password: String,
hubs: [{}],
host: {
username: String,
password: String,
hostname: String,
protocol: String,
},
airDCPPUserSettings: Object,
hubs: Array,
},
},
});