mirror of
https://github.com/ente-io/ente.git
synced 2025-08-09 07:48:52 +00:00
Remove unused
This commit is contained in:
parent
fead530786
commit
9cc8469ed9
@ -210,25 +210,6 @@ export async function changeFilesVisibility(
|
|||||||
return await updateFileMagicMetadata(fileWithUpdatedMagicMetadataList);
|
return await updateFileMagicMetadata(fileWithUpdatedMagicMetadataList);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function changeFileCreationTime(
|
|
||||||
file: EnteFile,
|
|
||||||
editedTime: number,
|
|
||||||
): Promise<EnteFile> {
|
|
||||||
const updatedPublicMagicMetadataProps: FilePublicMagicMetadataProps = {
|
|
||||||
editedTime,
|
|
||||||
};
|
|
||||||
const updatedPublicMagicMetadata: FilePublicMagicMetadata =
|
|
||||||
await updateMagicMetadata(
|
|
||||||
updatedPublicMagicMetadataProps,
|
|
||||||
file.pubMagicMetadata,
|
|
||||||
file.key,
|
|
||||||
);
|
|
||||||
const updateResult = await updateFilePublicMagicMetadata([
|
|
||||||
{ file, updatedPublicMagicMetadata },
|
|
||||||
]);
|
|
||||||
return updateResult[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function changeFileName(
|
export async function changeFileName(
|
||||||
file: EnteFile,
|
file: EnteFile,
|
||||||
editedName: string,
|
editedName: string,
|
||||||
|
@ -220,12 +220,14 @@ const PublicMagicMetadata = z
|
|||||||
.object({
|
.object({
|
||||||
// [Note: Zod doesn't work with `exactOptionalPropertyTypes` yet]
|
// [Note: Zod doesn't work with `exactOptionalPropertyTypes` yet]
|
||||||
//
|
//
|
||||||
// Using `optional` is accurate here. The key is optional, but the value
|
// Using `optional` is not accurate here. The key is optional, but the
|
||||||
// itself is not optional. Zod doesn't work with
|
// value itself is not optional.
|
||||||
// `exactOptionalPropertyTypes` yet, but it seems to be on the roadmap so we
|
|
||||||
// suppress these mismatches.
|
|
||||||
//
|
//
|
||||||
// See: https://github.com/colinhacks/zod/issues/635#issuecomment-2196579063
|
// Zod doesn't work with `exactOptionalPropertyTypes` yet, but it seems
|
||||||
|
// to be on the roadmap so we suppress these mismatches.
|
||||||
|
//
|
||||||
|
// See:
|
||||||
|
// https://github.com/colinhacks/zod/issues/635#issuecomment-2196579063
|
||||||
editedTime: z.number().optional(),
|
editedTime: z.number().optional(),
|
||||||
})
|
})
|
||||||
.passthrough();
|
.passthrough();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user