Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
meanspec-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MeanSpec (SCE338 2024-2 Group 1)
meanspec-backend
Commits
48c64d5f
Commit
48c64d5f
authored
7 months ago
by
Lee WooChang
Browse files
Options
Downloads
Patches
Plain Diff
fix: eslint 적용 및 오타 수정
parent
9406212e
No related branches found
No related tags found
1 merge request
!16
getCombinationId 오타 수정
Pipeline
#10801
passed
7 months ago
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/repositories/myRepository.js
+2
-2
2 additions, 2 deletions
src/repositories/myRepository.js
src/routes/my.js
+5
-1
5 additions, 1 deletion
src/routes/my.js
src/services/myService.js
+3
-3
3 additions, 3 deletions
src/services/myService.js
with
10 additions
and
6 deletions
src/repositories/myRepository.js
+
2
−
2
View file @
48c64d5f
...
@@ -37,8 +37,8 @@ const myRepository = {
...
@@ -37,8 +37,8 @@ const myRepository = {
async
getCombinationIdByTransactionId
(
transactionId
)
{
async
getCombinationIdByTransactionId
(
transactionId
)
{
const
query
=
`
const
query
=
`
SELECT combination_id
SELECT combination_id
FROM
P
cregister_
T
ransection
FROM
p
cregister_
t
ransection
WHERE trans
e
ction_id = $1
WHERE trans
a
ction_id = $1
`
;
`
;
const
values
=
[
transactionId
];
const
values
=
[
transactionId
];
const
{
rows
}
=
await
pool
.
query
(
query
,
values
);
const
{
rows
}
=
await
pool
.
query
(
query
,
values
);
...
...
This diff is collapsed.
Click to expand it.
src/routes/my.js
+
5
−
1
View file @
48c64d5f
...
@@ -33,7 +33,11 @@ myRouter.patch(
...
@@ -33,7 +33,11 @@ myRouter.patch(
throw
new
ReportableError
(
400
,
'
유효한 새로운 이름이 필요합니다.
'
);
throw
new
ReportableError
(
400
,
'
유효한 새로운 이름이 필요합니다.
'
);
}
}
const
result
=
await
myService
.
updateCombinationName
(
userId
,
combinationId
,
newName
);
const
result
=
await
myService
.
updateCombinationName
(
userId
,
combinationId
,
newName
);
return
res
.
status
(
200
).
json
(
result
);
return
res
.
status
(
200
).
json
(
result
);
})
})
...
...
This diff is collapsed.
Click to expand it.
src/services/myService.js
+
3
−
3
View file @
48c64d5f
...
@@ -89,9 +89,9 @@ const myService = {
...
@@ -89,9 +89,9 @@ const myService = {
const
combinationId
=
const
combinationId
=
await
myRepository
.
getCombinationIdByTransactionId
(
transactionId
);
await
myRepository
.
getCombinationIdByTransactionId
(
transactionId
);
re
s
.
sendResponse
(
''
,
200
,
{
re
turn
{
combinationId
:
combinationId
||
null
,
combinationId
:
combinationId
||
null
,
}
)
;
};
}
catch
{
}
catch
{
throw
new
ReportableError
(
throw
new
ReportableError
(
500
,
500
,
...
...
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