fix(server): empty/restore trash (#7161)

* fix(server): empty/restore trash

* add e2e tests

* add e2e tests - part 2
This commit is contained in:
Michel Heusschen 2024-02-17 21:05:43 +01:00 committed by GitHub
parent 69983ff83a
commit 0730b54ca9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 101 additions and 2 deletions

View file

@ -176,7 +176,7 @@ export class AssetRepository implements IAssetRepository {
}
getByUserId(pagination: PaginationOptions, userId: string, options: AssetSearchOptions = {}): Paginated<AssetEntity> {
return this.getAll(pagination, { ...options, id: userId });
return this.getAll(pagination, { ...options, ownerId: userId });
}
@GenerateSql({ params: [[DummyValue.UUID]] })