mirror of
https://github.com/Hackdex-App/hackdex-website.git
synced 2026-03-21 17:54:09 -05:00
Fix new hack not auto-publishing patch
This commit is contained in:
parent
15555f47c7
commit
23297cb4d9
|
|
@ -479,7 +479,7 @@ export default function HackSubmitForm({
|
|||
if (patchFile) {
|
||||
console.log('[HackSubmitForm] Uploading patch...');
|
||||
await fetch(presigned.presignedUrl, { method: 'PUT', body: patchFile, headers: { 'Content-Type': 'application/octet-stream' } });
|
||||
const finalized = await confirmPatchUpload({ slug: prepared.slug, objectKey: presigned.objectKey!, version, firstUpload: true });
|
||||
const finalized = await confirmPatchUpload({ slug: prepared.slug, objectKey: presigned.objectKey!, version, firstUpload: true, publishAutomatically: true });
|
||||
if (!finalized.ok) throw new Error(finalized.error || 'Failed to finalize');
|
||||
try {
|
||||
if (draftKey) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user