Repository navigation
Commit 4f2ffd6
fix: send PDF email for signed-in project scans
The audits table has a pdf_email column the worker reads to decide
whether to render the PDF + Resend it after a scan finishes. The
anonymous hero form populated it from the form field; the signed-in
project scan path (runScanForProject) silently inserted audits with
pdf_email=null, so the worker never sent the report.
Default pdf_email to the user's account email — matches the
expectation that a signed-in scan emails the result to the logged-in
user. Also passes it through notifyWorker so the in-flight HTTP
enqueue carries the email, not just the DB row.
Confirmed via DB inspection: recent project-page scans show
pdf_email=null while old hero-form scans show the email populated.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 752ad87 commit 4f2ffd6
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
212 | 217 | | |
213 | 218 | | |
214 | 219 | | |
| |||
217 | 222 | | |
218 | 223 | | |
219 | 224 | | |
| 225 | + | |
220 | 226 | | |
221 | 227 | | |
222 | 228 | | |
| |||
242 | 248 | | |
243 | 249 | | |
244 | 250 | | |
245 | | - | |
| 251 | + | |
246 | 252 | | |
247 | 253 | | |
248 | 254 | | |
| |||
0 commit comments