fix: add state enums to Connection matchingTags, index to TagSuggestion

This commit is contained in:
Jennie Robinson Faber 2026-04-05 16:09:20 +01:00
parent 8112e5ea47
commit 4b6ff19d5f
2 changed files with 4 additions and 2 deletions

View file

@ -7,8 +7,8 @@ const connectionSchema = new mongoose.Schema({
matchingTags: [
{
tagSlug: String,
initiatorState: String,
recipientState: String,
initiatorState: { type: String, enum: ['help', 'interested', 'seeking'] },
recipientState: { type: String, enum: ['help', 'interested', 'seeking'] },
},
],
hiddenBy: [{ type: mongoose.Schema.Types.ObjectId, ref: 'Member' }],