refactor(server): narrow auth types (#16066)
This commit is contained in:
@@ -19,7 +19,8 @@ export class DownloadService extends BaseService {
|
||||
const archives: DownloadArchiveInfo[] = [];
|
||||
let archive: DownloadArchiveInfo = { size: 0, assetIds: [] };
|
||||
|
||||
const preferences = getPreferences(auth.user);
|
||||
const metadata = await this.userRepository.getMetadata(auth.user.id);
|
||||
const preferences = getPreferences(auth.user.email, metadata);
|
||||
|
||||
const assetPagination = await this.getDownloadAssets(auth, dto);
|
||||
for await (const assets of assetPagination) {
|
||||
|
||||
Reference in New Issue
Block a user