feat: list gh repos in user admin

This commit is contained in:
tdurieux
2023-02-22 11:05:37 +01:00
parent d825cc1d69
commit c59e202124
5 changed files with 103 additions and 19 deletions

View File

@@ -19,7 +19,12 @@ const UserSchema = new Schema({
],
isAdmin: { type: Boolean, default: false },
photo: String,
repositories: [String],
repositories: [
{
type: String,
ref: "Repository",
},
],
default: {
terms: [String],
options: {