Change permissions to array[string]

This commit is contained in:
Alex Holliday committed 2024-07-18 12:42:02 -07:00
1 parent b4b2e3ec56
commit af61a4ef0a
1 file changed
+1 -1
+1 -1
View File
@@ -36,7 +36,7 @@ const UserSchema = mongoose.Schema(
default: false,
},
role: {
type: String,
type: [String],
default: "user",
enum: ["user", "admin"],
},