web type fixes

This commit is contained in:
timonrieger 2026-02-27 16:37:10 +01:00
parent 3649aa10b0
commit 1a8d3d5acd
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View File

@ -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' });

View File

@ -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'));

View File

@ -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,