Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
fix: notification settings schema now works
Browse files Browse the repository at this point in the history
  • Loading branch information
kndonetm committed Nov 20, 2023
1 parent 4e6db3a commit ea54f14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/notificationSettings.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Packages
import { Schema, Model } from 'mongoose'
import { Schema, model } from 'mongoose'

const NotificationSettingsSchema = new Schema({
notification_period_1: Number,
notification_period_2: Number,
notification_period_3: Number
})

const NotificationSettings = new Model('NotificationSettings', NotificationSettingsSchema)
const NotificationSettings = new model('NotificationSettings', NotificationSettingsSchema)

export default NotificationSettings

0 comments on commit ea54f14

Please sign in to comment.