Skip to content

Commit

Permalink
Fix typo in subscription model schema
Browse files Browse the repository at this point in the history
  • Loading branch information
hiteshchoudhary committed Dec 20, 2023
1 parent 2c39bf6 commit df2484a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/subscription.model.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import mongoose, {Schema} from "mongoose"

const subsciptionSchema = new Schema({
const subscriptionSchema = new Schema({
subscriber: {
type: Schema.Types.ObjectId, // one who is subscribing
ref: "User"
Expand All @@ -13,4 +13,4 @@ const subsciptionSchema = new Schema({



export const Subsciption = mongoose.model("Subsciption", subsciptionSchema)
export const Subsciption = mongoose.model("Subsciption", subscriptionSchema)

0 comments on commit df2484a

Please sign in to comment.