mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
Tags should be an array
This commit is contained in:
+5
-9
@@ -9,11 +9,6 @@ const STATUSES = [
|
||||
null
|
||||
];
|
||||
|
||||
const TAGS = [
|
||||
'STAFF',
|
||||
null
|
||||
];
|
||||
|
||||
/**
|
||||
* The Mongo schema for a Comment Status.
|
||||
* @type {Schema}
|
||||
@@ -54,10 +49,11 @@ const CommentSchema = new Schema({
|
||||
author_id: String,
|
||||
status_history: [StatusSchema],
|
||||
status: {type: String, default: null},
|
||||
tag: {
|
||||
type: String,
|
||||
enum: TAGS,
|
||||
},
|
||||
tags: [{
|
||||
name: String,
|
||||
assigned_by: String,
|
||||
created_at: Date
|
||||
}],
|
||||
parent_id: String
|
||||
}, {
|
||||
timestamps: {
|
||||
|
||||
Reference in New Issue
Block a user