You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-06-17 03:47:45 +02:00
refactor(server): move checkExistingAssets(), checkBulkUpdate() remove getAllAssets() (#9715)
* Refactor controller methods, non-breaking change * Remove getAllAssets * used imports * sync:sql * missing mock * Removing remaining references * chore: remove unused code --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
@ -1338,37 +1338,6 @@ export function deleteAssets({ assetBulkDeleteDto }: {
|
||||
body: assetBulkDeleteDto
|
||||
})));
|
||||
}
|
||||
/**
|
||||
* Get all AssetEntity belong to the user
|
||||
*/
|
||||
export function getAllAssets({ ifNoneMatch, isArchived, isFavorite, skip, take, updatedAfter, updatedBefore, userId }: {
|
||||
ifNoneMatch?: string;
|
||||
isArchived?: boolean;
|
||||
isFavorite?: boolean;
|
||||
skip?: number;
|
||||
take?: number;
|
||||
updatedAfter?: string;
|
||||
updatedBefore?: string;
|
||||
userId?: string;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
data: AssetResponseDto[];
|
||||
}>(`/asset${QS.query(QS.explode({
|
||||
isArchived,
|
||||
isFavorite,
|
||||
skip,
|
||||
take,
|
||||
updatedAfter,
|
||||
updatedBefore,
|
||||
userId
|
||||
}))}`, {
|
||||
...opts,
|
||||
headers: oazapfts.mergeHeaders(opts?.headers, {
|
||||
"if-none-match": ifNoneMatch
|
||||
})
|
||||
}));
|
||||
}
|
||||
export function updateAssets({ assetBulkUpdateDto }: {
|
||||
assetBulkUpdateDto: AssetBulkUpdateDto;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
|
Reference in New Issue
Block a user