refactor: extract escapeRegex and validateTagSlugs server utils
Deduplicate tag validation and regex escaping into shared auto-imported utils. Add tag validation to wiki patch/batch-tag routes. Remove duplicate tags field from event schema.
This commit is contained in:
parent
f585fabf21
commit
a516f172fb
11 changed files with 33 additions and 31 deletions
|
|
@ -183,7 +183,6 @@ const eventSchema = new mongoose.Schema({
|
|||
refundAmount: Number,
|
||||
},
|
||||
],
|
||||
tags: [{ type: String }],
|
||||
createdBy: { type: String, required: true },
|
||||
createdAt: { type: Date, default: Date.now },
|
||||
updatedAt: { type: Date, default: Date.now },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue