Migrated to CommonJS

This commit is contained in:
2020-10-08 11:12:56 +02:00
parent 871919c838
commit 10a7680d90
16 changed files with 189 additions and 129 deletions

View File

@@ -1,4 +1,4 @@
import mongoose from "mongoose";
const mongoose = require("mongoose");
const paymentSchema = mongoose.Schema({
_id: mongoose.Types.ObjectId,
@@ -7,4 +7,4 @@ const paymentSchema = mongoose.Schema({
months: Number,
});
export default mongoose.model("Payment", paymentSchema);
module.exorts = mongoose.model("Payment", paymentSchema);