migrate to esm
This commit is contained in:
1 parent
c2e00375c1
commit
f057807b56
52 files changed
+296
-302
No files matched your search
@@ -1,5 +1,4 @@
|
||||
const mongoose = require("mongoose");
|
||||
|
||||
import mongoose from "mongoose";
|
||||
const NotificationSchema = mongoose.Schema(
|
||||
{
|
||||
monitorId: {
|
||||
@@ -22,5 +21,4 @@ const NotificationSchema = mongoose.Schema(
|
||||
timestamps: true,
|
||||
}
|
||||
);
|
||||
|
||||
module.exports = mongoose.model("Notification", NotificationSchema);
|
||||
export default mongoose.model("Notification", NotificationSchema);
|
||||
Reference in new issue
Block a user