better flyer icons + archive
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 4m25s
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 4m25s
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user