diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-11-30 14:36:14 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-11-30 14:37:57 +0100 |
| commit | 37a7d581966d29e8342721383e743cd93575cb07 (patch) | |
| tree | d263900aeaf4fcd4b633e84543c229701c70d794 /src | |
| parent | f6554fab5fe6932f4db0784aa5224453c2f90199 (diff) | |
| download | bycs-sol-main.tar.gz bycs-sol-main.zip | |
Fixes: 8b132b7c
Diffstat (limited to 'src')
| -rw-r--r-- | src/database-prod.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/database-prod.ts b/src/database-prod.ts index 0344237..70da320 100644 --- a/src/database-prod.ts +++ b/src/database-prod.ts @@ -182,8 +182,7 @@ async function addEntryToDatabaseActivity(db: DB, json: string) { const url = `/mod/data/edit.php?id=${db.id}`; const editRes = await fetch(url); const editDoc = new DOMParser().parseFromString(await editRes.text(), "text/html"); - const form = editDoc.querySelector<HTMLFormElement>('div[role="main"] > form'); - return form; + return editDoc.querySelector<HTMLFormElement>('div[role="main"] > form')!; })(); } |
