servers owners defaults to empty array

This commit is contained in:
mbecker20
2022-04-13 13:22:35 -07:00
parent 961f4d640c
commit 38320a4f8b
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ const servers = fp((app: FastifyInstance, _: {}, done: () => void) => {
address: { type: String, unique: true },
enabled: { type: Boolean, default: true },
isCore: Boolean,
owners: [String],
owners: { type: [String], default: [] },
});
app.decorate("servers", model(app, "Server", schema));