mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-02 05:31:38 +00:00
Fix ssl undefined issue
This commit is contained in:
parent
1b01c4f053
commit
526307e192
1 changed files with 6 additions and 6 deletions
|
|
@ -103,18 +103,18 @@ export async function getResourceAuthInfo(
|
|||
.limit(1);
|
||||
|
||||
const resource = result?.resources;
|
||||
const pincode = result?.resourcePincode;
|
||||
const password = result?.resourcePassword;
|
||||
const headerAuth = result?.resourceHeaderAuth;
|
||||
|
||||
const url = `${resource.ssl ? "https" : "http"}://${resource.fullDomain}`;
|
||||
|
||||
if (!resource) {
|
||||
return next(
|
||||
createHttpError(HttpCode.NOT_FOUND, "Resource not found")
|
||||
);
|
||||
}
|
||||
|
||||
const pincode = result?.resourcePincode;
|
||||
const password = result?.resourcePassword;
|
||||
const headerAuth = result?.resourceHeaderAuth;
|
||||
|
||||
const url = `${resource.ssl ? "https" : "http"}://${resource.fullDomain}`;
|
||||
|
||||
return response<GetResourceAuthInfoResponse>(res, {
|
||||
data: {
|
||||
niceId: resource.niceId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue