1
0
mirror of https://github.com/immich-app/immich.git synced 2025-07-03 05:46:58 +02:00

fix(web): broken links to places search (#7208)

This commit is contained in:
Michel Heusschen
2024-02-19 21:55:54 +01:00
committed by GitHub
parent 5e1498a279
commit 529a83cc72
4 changed files with 16 additions and 6 deletions

View File

@ -0,0 +1,9 @@
import { QueryParameter } from '$lib/constants';
import type { MetadataSearchDto } from '@immich/sdk';
export function getMetadataSearchQuery(metadata: MetadataSearchDto) {
const searchParams = new URLSearchParams({
[QueryParameter.QUERY]: JSON.stringify(metadata),
});
return searchParams.toString();
}