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:07:28 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
0599acbe07fab9c3328fe8995b10ce0d9cd46152
0599acbe
2 parents
42919eb6
50f9d78b
Merge commit '
50f9d78b
' into develop
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 @
0599acb
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
;
...
...
Please
register
or
login
to post a comment