[deploy] Remove TS type annotation from dashboard inline script
All checks were successful
Deploy Discord Bot / deploy (push) Successful in 36s
All checks were successful
Deploy Discord Bot / deploy (push) Successful in 36s
This commit is contained in:
@@ -2318,7 +2318,7 @@ router.get('/', (req, res) => {
|
||||
e.preventDefault();
|
||||
if (!currentGuild) return;
|
||||
const form = new FormData(e.currentTarget);
|
||||
const payload: any = Object.fromEntries(form.entries());
|
||||
const payload = Object.fromEntries(form.entries());
|
||||
payload.supportRoleId = payload.supportRoleId || undefined;
|
||||
payload.guildId = currentGuild;
|
||||
const res = await fetch('/api/settings', { method:'POST', headers:{'Content-Type':'application/json'}, body: JSON.stringify(payload) });
|
||||
|
||||
Reference in New Issue
Block a user