fix: UI tab active icon wrong position (#416)

This commit is contained in:
Dream Hunter
2024-08-17 01:46:40 +08:00
committed by GitHub
parent 3664028e06
commit 56104cd23a
10 changed files with 22 additions and 20 deletions

View File

@@ -7,12 +7,6 @@ import { commonParseMail, sendWebhook } from "../common";
async function getWebhookSettings(c: Context<HonoCustomType>): Promise<Response> {
if (!c.env.KV) {
return c.text("KV is not available", 400);
}
if (!getBooleanValue(c.env.ENABLE_WEBHOOK)) {
return c.text("Webhook is disabled", 403);
}
const { address } = c.get("jwtPayload")
const adminSettings = await c.env.KV.get<AdminWebhookSettings>(CONSTANTS.WEBHOOK_KV_SETTINGS_KEY, "json");
if (!adminSettings?.allowList.includes(address)) {