backedn converted to ts
This commit is contained in:
+3
-2
@@ -1,4 +1,4 @@
|
||||
const mongoose = require("mongoose");
|
||||
import mongoose from "mongoose";
|
||||
|
||||
const ProfileSchema = new mongoose.Schema({
|
||||
user: {
|
||||
@@ -110,4 +110,5 @@ const ProfileSchema = new mongoose.Schema({
|
||||
},
|
||||
});
|
||||
|
||||
module.exports = mongoose.model("profile", ProfileSchema);
|
||||
const Profile = mongoose.model("profile", ProfileSchema);
|
||||
export default Profile
|
||||
|
||||
Reference in New Issue
Block a user