Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SicDoRak
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2023_2_WebPromgramming_8
SicDoRak
Commits
2892e0e9
Commit
2892e0e9
authored
1 year ago
by
root
Browse files
Options
Downloads
Patches
Plain Diff
awstesting
parent
e6311508
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
backend/src/data/userService.js
+2
-2
2 additions, 2 deletions
backend/src/data/userService.js
backend/src/models/article.js
+2
-2
2 additions, 2 deletions
backend/src/models/article.js
with
4 additions
and
4 deletions
backend/src/data/userService.js
+
2
−
2
View file @
2892e0e9
import
User
from
'
../models/
U
ser.js
'
;
import
User
from
'
../models/
u
ser.js
'
;
const
userService
=
{
async
createUser
(
userData
)
{
...
...
@@ -39,4 +39,4 @@ const userService = {
}
};
export
default
userService
;
\ No newline at end of file
export
default
userService
;
This diff is collapsed.
Click to expand it.
backend/src/models/article.js
+
2
−
2
View file @
2892e0e9
import
mongoose
from
'
mongoose
'
;
import
UserSchema
from
'
./
U
ser.js
'
;
import
UserSchema
from
'
./
u
ser.js
'
;
const
CommentSchema
=
new
mongoose
.
Schema
({
content
:
{
...
...
@@ -62,4 +62,4 @@ const ArticleSchema = new mongoose.Schema({
const
Article
=
mongoose
.
model
(
"
Article
"
,
ArticleSchema
);
export
default
Article
;
\ No newline at end of file
export
default
Article
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment