mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-10 20:02:26 +00:00
Add more transactions support
This commit is contained in:
@@ -920,7 +920,7 @@ export class UsageService {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Don't await to prevent blocking
|
// Don't await to prevent blocking
|
||||||
await sendToClient(newt.newtId, payload).catch(
|
sendToClient(newt.newtId, payload).catch(
|
||||||
(error: any) => {
|
(error: any) => {
|
||||||
logger.error(
|
logger.error(
|
||||||
`Failed to send termination message to newt ${newt.newtId}:`,
|
`Failed to send termination message to newt ${newt.newtId}:`,
|
||||||
|
|||||||
@@ -238,7 +238,7 @@ export async function getTraefikConfig(
|
|||||||
}
|
}
|
||||||
// get the valid certs for these domains
|
// get the valid certs for these domains
|
||||||
validCerts = await getValidCertificatesForDomains(domains, true); // we are caching here because this is called often
|
validCerts = await getValidCertificatesForDomains(domains, true); // we are caching here because this is called often
|
||||||
logger.debug(`Valid certs for domains: ${JSON.stringify(validCerts)}`);
|
// logger.debug(`Valid certs for domains: ${JSON.stringify(validCerts)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const config_output: any = {
|
const config_output: any = {
|
||||||
|
|||||||
@@ -149,7 +149,8 @@ export async function updateSiteBandwidth(
|
|||||||
orgId,
|
orgId,
|
||||||
true,
|
true,
|
||||||
FeatureId.EGRESS_DATA_MB,
|
FeatureId.EGRESS_DATA_MB,
|
||||||
bandwidthUsage
|
bandwidthUsage,
|
||||||
|
trx
|
||||||
)
|
)
|
||||||
.catch((error: any) => {
|
.catch((error: any) => {
|
||||||
logger.error(
|
logger.error(
|
||||||
@@ -175,7 +176,8 @@ export async function updateSiteBandwidth(
|
|||||||
orgId,
|
orgId,
|
||||||
true,
|
true,
|
||||||
FeatureId.SITE_UPTIME,
|
FeatureId.SITE_UPTIME,
|
||||||
uptimeUsage
|
uptimeUsage,
|
||||||
|
trx
|
||||||
)
|
)
|
||||||
.catch((error: any) => {
|
.catch((error: any) => {
|
||||||
logger.error(
|
logger.error(
|
||||||
|
|||||||
Reference in New Issue
Block a user