mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-05 18:26:40 +00:00
Fix ssl undefined issue
This commit is contained in:
@@ -103,18 +103,18 @@ export async function getResourceAuthInfo(
|
|||||||
.limit(1);
|
.limit(1);
|
||||||
|
|
||||||
const resource = result?.resources;
|
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) {
|
if (!resource) {
|
||||||
return next(
|
return next(
|
||||||
createHttpError(HttpCode.NOT_FOUND, "Resource not found")
|
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, {
|
return response<GetResourceAuthInfoResponse>(res, {
|
||||||
data: {
|
data: {
|
||||||
niceId: resource.niceId,
|
niceId: resource.niceId,
|
||||||
|
|||||||
Reference in New Issue
Block a user