Skip to content

Commit

Permalink
chore: add slug field to authors
Browse files Browse the repository at this point in the history
  • Loading branch information
lukePeavey committed Mar 2, 2021
1 parent 43e0d69 commit 65f3868
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/models/Authors.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const AuthorSchema = new Schema({
bio: { type: String, default: '' },
// The number of quotes by this author
quoteCount: { type: Number, required: true },
// URL safe version of the author name
slug: { type: String, required: true },
})

AuthorSchema.set('collation', { locale: 'en_US', strength: 1 })
Expand Down

0 comments on commit 65f3868

Please sign in to comment.