Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit eea1596

Browse files
committed
feat: use v5 endpoint for tags
1 parent 581f9f9 commit eea1596

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

models/Project.js

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,21 @@ const schema = new Schema({
2323
type: Number,
2424
required: true
2525
},
26-
tags: {
27-
type: String,
28-
required: true,
29-
default: ''
30-
},
26+
tags: [
27+
String,
28+
{
29+
type: Array,
30+
schema: {
31+
type: Object,
32+
schema: {
33+
id: {type: String, required: true},
34+
name: {type: String, required: true}
35+
}
36+
},
37+
required: true,
38+
default: ''
39+
}
40+
],
3141
rocketChatWebhook: {type: String, required: false},
3242
rocketChatChannelName: {type: String, required: false},
3343
archived: {type: String, required: true},

0 commit comments

Comments
 (0)