Remove shouldStripGpsData from formData
This commit is contained in:
parent
a203972bfb
commit
b492cf3ea2
@ -52,11 +52,14 @@ import { convertUploadToPhoto } from './storage';
|
||||
|
||||
export const createPhotoAction = async (formData: FormData) =>
|
||||
runAuthenticatedAdminServerAction(async () => {
|
||||
const shouldStripGpsData = formData.get('shouldStripGpsData') === 'true';
|
||||
formData.delete('shouldStripGpsData');
|
||||
|
||||
const photo = convertFormDataToPhotoDbInsert(formData);
|
||||
|
||||
const updatedUrl = await convertUploadToPhoto(
|
||||
photo.url,
|
||||
formData.get('shouldStripGpsData') === 'true',
|
||||
shouldStripGpsData,
|
||||
);
|
||||
|
||||
if (updatedUrl) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user