mirror of
https://github.com/immich-app/immich.git
synced 2026-03-10 11:53:43 -04:00
web type fixes
This commit is contained in:
parent
3649aa10b0
commit
1a8d3d5acd
@ -76,7 +76,7 @@ const MetadataSearchSchema = RandomSearchSchema.extend({
|
||||
previewPath: z.string().optional().describe('Filter by preview file path'),
|
||||
thumbnailPath: z.string().optional().describe('Filter by thumbnail file path'),
|
||||
encodedVideoPath: z.string().optional().describe('Filter by encoded video file path'),
|
||||
order: AssetOrderSchema.default(AssetOrder.Desc).describe('Sort order'),
|
||||
order: AssetOrderSchema.default(AssetOrder.Desc).optional().describe('Sort order'),
|
||||
page: z.number().min(1).optional().describe('Page number'),
|
||||
}).meta({ id: 'MetadataSearchDto' });
|
||||
|
||||
|
||||
@ -366,7 +366,7 @@ export const deleteStack = async (stackIds: string[]) => {
|
||||
|
||||
const assets = stacks.flatMap((stack) => stack.assets);
|
||||
for (const asset of assets) {
|
||||
asset.stack = null;
|
||||
asset.stack = undefined;
|
||||
}
|
||||
|
||||
return assets;
|
||||
@ -385,7 +385,7 @@ export const keepThisDeleteOthers = async (keepAsset: AssetResponseDto, stack: S
|
||||
|
||||
toastManager.success($t('kept_this_deleted_others', { values: { count: assetsToDeleteIds.length } }));
|
||||
|
||||
keepAsset.stack = null;
|
||||
keepAsset.stack = undefined;
|
||||
return keepAsset;
|
||||
} catch (error) {
|
||||
handleError(error, $t('errors.failed_to_keep_this_delete_others'));
|
||||
|
||||
@ -8,8 +8,8 @@ import { uploadRequest } from '$lib/utils';
|
||||
import { ExecutorQueue } from '$lib/utils/executor-queue';
|
||||
import { asQueryString } from '$lib/utils/shared-links';
|
||||
import {
|
||||
Action,
|
||||
AssetMediaStatus,
|
||||
AssetUploadAction,
|
||||
AssetVisibility,
|
||||
checkBulkUpload,
|
||||
getBaseUrl,
|
||||
@ -181,7 +181,7 @@ async function fileUploader({
|
||||
const {
|
||||
results: [checkUploadResult],
|
||||
} = await checkBulkUpload({ assetBulkUploadCheckDto: { assets: [{ id: assetFile.name, checksum }] } });
|
||||
if (checkUploadResult.action === Action.Reject && checkUploadResult.assetId) {
|
||||
if (checkUploadResult.action === AssetUploadAction.Reject && checkUploadResult.assetId) {
|
||||
responseData = {
|
||||
status: AssetMediaStatus.Duplicate,
|
||||
id: checkUploadResult.assetId,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user