mirror of
https://github.com/immich-app/immich.git
synced 2025-12-18 17:23:16 +03:00
Implemented load new image when navigating back from backup page (#9)
This commit is contained in:
@@ -29,6 +29,7 @@ import { Response as Res } from 'express';
|
||||
import { promisify } from 'util';
|
||||
import { stat } from 'fs';
|
||||
import { pipeline } from 'stream';
|
||||
import { GetNewAssetQueryDto } from './dto/get-new-asset-query.dto';
|
||||
|
||||
const fileInfo = promisify(stat);
|
||||
|
||||
@@ -141,6 +142,11 @@ export class AssetController {
|
||||
console.log('SHOULD NOT BE HERE');
|
||||
}
|
||||
|
||||
@Get('/new')
|
||||
async getNewAssets(@GetAuthUser() authUser: AuthUserDto, @Query(ValidationPipe) query: GetNewAssetQueryDto) {
|
||||
return await this.assetService.getNewAssets(authUser, query.latestDate);
|
||||
}
|
||||
|
||||
@Get('/all')
|
||||
async getAllAssets(@GetAuthUser() authUser: AuthUserDto, @Query(ValidationPipe) query: GetAllAssetQueryDto) {
|
||||
return await this.assetService.getAllAssets(authUser, query);
|
||||
|
||||
Reference in New Issue
Block a user