Merge branch 'main' into dev

This commit is contained in:
Owen
2025-08-10 10:16:47 -07:00
43 changed files with 898 additions and 346 deletions

View File

@@ -271,7 +271,7 @@ export async function getNextAvailableClientSubnet(
)
].filter((address) => address !== null) as string[];
let subnet = findNextAvailableCidr(addresses, 32, org.subnet); // pick the sites address in the org
const subnet = findNextAvailableCidr(addresses, 32, org.subnet); // pick the sites address in the org
if (!subnet) {
throw new Error("No available subnets remaining in space");
}
@@ -289,7 +289,7 @@ export async function getNextAvailableOrgSubnet(): Promise<string> {
const addresses = existingAddresses.map((org) => org.subnet!);
let subnet = findNextAvailableCidr(
const subnet = findNextAvailableCidr(
addresses,
config.getRawConfig().orgs.block_size,
config.getRawConfig().orgs.subnet_group

View File

@@ -1,6 +1,6 @@
import { MemoryStore, Store } from "express-rate-limit";
export function createStore(): Store {
let rateLimitStore: Store = new MemoryStore();
const rateLimitStore: Store = new MemoryStore();
return rateLimitStore;
}