Toggle navigation
Toggle navigation
This project
Loading...
Sign in
송용우
/
oss-Jaksimsamil
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
송용우
2020-08-21 18:06:57 +0900
1
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
50f9d78bd02f39e5157ee83e79b56774a6c7a96a
50f9d78b
1 parent
7670f233
Fixed slack api for user model
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
jaksimsamil-server/src/api/notify/slack.ctrl.js
jaksimsamil-server/src/api/notify/slack.ctrl.js
View file @
50f9d78
const
Profile
=
require
(
"../../models/profile
"
);
const
User
=
require
(
"../../models/user
"
);
const
sendSlack
=
require
(
"../../util/sendSlack"
);
const
problem_set
=
require
(
"../../data/problem_set"
);
const
compareBJ
=
require
(
"../../util/compareBJ"
);
...
...
@@ -12,7 +12,7 @@ exports.slackGoal = async (ctx) => {
try
{
const
{
username
}
=
ctx
.
request
.
body
;
const
profile
=
await
Profile
.
findByUsername
(
username
);
const
profile
=
await
User
.
findByUsername
(
username
);
if
(
!
profile
)
{
ctx
.
status
=
401
;
return
;
...
...
@@ -62,7 +62,7 @@ exports.slackRecommend = async (ctx) => {
console
.
log
(
"1"
);
const
{
username
}
=
ctx
.
request
.
body
;
const
profile
=
await
Profile
.
findByUsername
(
username
);
const
profile
=
await
User
.
findByUsername
(
username
);
if
(
!
profile
)
{
ctx
.
status
=
401
;
return
;
...
...
송용우
@2019102188
2020-09-26 12:41:26 UTC
Mentioned in commit
0599acbe
Please
register
or
login
to post a comment