mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-01 21:42:44 +00:00
Site runs and all tests pass
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const mongoose = require('mongoose');
|
||||
const _ = require('lodash');
|
||||
import mongoose from 'mongoose';
|
||||
import _ from 'lodash';
|
||||
|
||||
const NotificationSchema = new mongoose.Schema({
|
||||
dismissKey : { type: String, unique: true, required: true },
|
||||
@@ -56,7 +56,7 @@ NotificationSchema.statics.getAll = async function() {
|
||||
|
||||
const Notification = mongoose.model('Notification', NotificationSchema);
|
||||
|
||||
module.exports = {
|
||||
schema : NotificationSchema,
|
||||
model : Notification,
|
||||
export {
|
||||
NotificationSchema as schema,
|
||||
Notification as model
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user