mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-03 06:48:21 +00:00
refactor: implement session checking utility, enhance device queries with session validation, and improve UI interactions for device management
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 6m36s
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 6m36s
This commit is contained in:
@ -123,11 +123,7 @@ export async function blockDevice({
|
||||
if (!macAddress) {
|
||||
throw new Error("macAddress is a required parameter");
|
||||
}
|
||||
// const device = await prisma.device.findFirst({
|
||||
// where: {
|
||||
// mac: macAddress,
|
||||
// },
|
||||
// });
|
||||
|
||||
try {
|
||||
const baseUrl: string = process.env.OMADA_BASE_URL || "";
|
||||
const url: string = `${baseUrl}/api/v2/sites/${process.env.OMADA_SITE_ID}/cmd/clients/${formatMacAddress(macAddress)}/${type}`;
|
||||
|
Reference in New Issue
Block a user