better flyer icons + archive
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 4m25s

This commit is contained in:
2025-12-03 14:13:44 -08:00
parent ba778a20d7
commit 383e8e3d25
6 changed files with 211 additions and 15 deletions

View File

@@ -670,6 +670,16 @@ export const updateSuggestedCorrection = async (correctionId: number, newSuggest
}, tokenOverride);
};
/**
* Enqueues a job to clean up the files associated with a specific flyer.
* Requires admin privileges.
* @param flyerId The ID of the flyer to clean up.
* @param tokenOverride Optional token for testing.
*/
export const cleanupFlyerFiles = async (flyerId: number, tokenOverride?: string): Promise<Response> => {
return apiFetch(`/admin/flyers/${flyerId}/cleanup`, { method: 'POST' }, tokenOverride);
};
export async function registerUser(
email: string,
password: string,