feat(ui): modals close only via Esc/X/cancel; standard 3:1 form cover processing
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -106,7 +106,7 @@ export class LeadFormsController {
|
||||
const form = await this.leadFormsService.get(user.organizationId, id);
|
||||
const row = await this.leadFormsService.getByToken(form.publicToken);
|
||||
if (!row?.coverStorageKey) return { ok: false };
|
||||
res.set({ 'Content-Type': 'image/jpeg' });
|
||||
res.set({ 'Content-Type': this.leadFormsService.coverContentType(row.coverStorageKey) });
|
||||
return new StreamableFile(this.files.openReadStream(row.coverStorageKey));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user