Skip to content
Snippets Groups Projects
Commit 2892e0e9 authored by root's avatar root
Browse files

awstesting

parent e6311508
No related branches found
No related tags found
No related merge requests found
import User from '../models/User.js'; import User from '../models/user.js';
const userService = { const userService = {
async createUser(userData) { async createUser(userData) {
...@@ -39,4 +39,4 @@ const userService = { ...@@ -39,4 +39,4 @@ const userService = {
} }
}; };
export default userService; export default userService;
\ No newline at end of file
import mongoose from 'mongoose'; import mongoose from 'mongoose';
import UserSchema from './User.js'; import UserSchema from './user.js';
const CommentSchema = new mongoose.Schema({ const CommentSchema = new mongoose.Schema({
content: { content: {
...@@ -62,4 +62,4 @@ const ArticleSchema = new mongoose.Schema({ ...@@ -62,4 +62,4 @@ const ArticleSchema = new mongoose.Schema({
const Article = mongoose.model("Article", ArticleSchema); const Article = mongoose.model("Article", ArticleSchema);
export default Article; export default Article;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment