Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
RIT_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박권수
2021-10-13 01:03:39 +0900
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
66b4e2d17e44f9f30dc2f6d40dab0ecd5d4af9be
66b4e2d1
2 parents
d798dc6f
c72caee1
Merge branch 'server' into web
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
server/src/api/auth/auth.ctrl.js
server/src/util/GoogleCloudStorage.js
server/src/api/auth/auth.ctrl.js
View file @
66b4e2d
...
...
@@ -197,7 +197,7 @@ exports.doctorRegister = async ctx => {
doctorId
:
userId
,
info
,
useYn
:
'W'
,
});
});
await
doctorInfo
.
save
();
await
doctor
.
save
();
...
...
server/src/util/GoogleCloudStorage.js
View file @
66b4e2d
...
...
@@ -32,10 +32,10 @@ exports.viewDoctorLicense = async ({ doctorInfo }) => {
expires
:
Date
.
now
()
+
1000
*
60
*
15
,
action
:
'read'
,
};
const
[
signedUrl
]
=
file
?
await
file
.
getSignedUrl
(
option
)
:
[
null
];
return
signedUrl
;
return
signedUrl
;
}
catch
(
e
)
{
console
.
log
(
e
);
return
null
;
...
...
@@ -73,9 +73,9 @@ exports.getQrCodeUrl = async ({ qrCodeFileName }) => {
expires
:
Date
.
now
()
+
1000
*
60
*
15
,
action
:
'read'
,
};
const
[
signedUrl
]
=
file
?
await
file
.
getSignedUrl
(
option
)
:
[
null
];
return
signedUrl
;
}
catch
(
e
)
{
console
.
log
(
e
);
...
...
Please
register
or
login
to post a comment