mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-18 18:23:18 +02:00
Generate the cert properly
This commit is contained in:
@@ -632,9 +632,7 @@ async function createHttpResource(
|
||||
);
|
||||
}
|
||||
|
||||
if (build !== "oss") {
|
||||
await createCertificate(domainId, fullDomain, db);
|
||||
}
|
||||
await createCertificate(domainId, fullDomain, db);
|
||||
|
||||
return response<CreateResourceResponse>(res, {
|
||||
data: resource,
|
||||
|
||||
@@ -678,9 +678,7 @@ async function updateHttpResource(
|
||||
// Update the subdomain in the update data
|
||||
updateData.subdomain = finalSubdomain;
|
||||
|
||||
if (build != "oss") {
|
||||
await createCertificate(domainId, fullDomain, db);
|
||||
}
|
||||
await createCertificate(domainId, fullDomain, db);
|
||||
}
|
||||
|
||||
let headers = undefined;
|
||||
|
||||
Reference in New Issue
Block a user