mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
Code cleanup
This commit is contained in:
parent
ac1f226bfe
commit
3ac0bb22b2
@ -56,6 +56,7 @@ export class RenderingMWs {
|
|||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
const { password, creator, ...sharing } = req.resultPipe as SharingDTO;
|
const { password, creator, ...sharing } = req.resultPipe as SharingDTO;
|
||||||
RenderingMWs.renderMessage(res, sharing);
|
RenderingMWs.renderMessage(res, sharing);
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
ClientAlbumConfig,
|
ClientAlbumConfig,
|
||||||
ClientFacesConfig,
|
ClientFacesConfig,
|
||||||
ClientMapConfig, ClientMediaConfig,
|
ClientMapConfig,
|
||||||
ClientMetaFileConfig,
|
ClientMetaFileConfig,
|
||||||
ClientPhotoConfig,
|
ClientPhotoConfig,
|
||||||
ClientRandomPhotoConfig,
|
ClientRandomPhotoConfig,
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import {
|
import {
|
||||||
DirectoryDTOUtils,
|
|
||||||
ParentDirectoryDTO,
|
ParentDirectoryDTO,
|
||||||
} from '../../common/entities/DirectoryDTO';
|
} from '../../common/entities/DirectoryDTO';
|
||||||
import {Logger} from '../Logger';
|
import {Logger} from '../Logger';
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import {AlbumBaseDTO} from '../../../../common/entities/album/AlbumBaseDTO';
|
import {AlbumBaseDTO} from '../../../../common/entities/album/AlbumBaseDTO';
|
||||||
import { SearchQueryDTO } from '../../../../common/entities/SearchQueryDTO';
|
|
||||||
import {IAlbumManager} from '../interfaces/IAlbumManager';
|
import {IAlbumManager} from '../interfaces/IAlbumManager';
|
||||||
|
|
||||||
export class AlbumManager implements IAlbumManager {
|
export class AlbumManager implements IAlbumManager {
|
||||||
@ -11,27 +10,15 @@ export class AlbumManager implements IAlbumManager {
|
|||||||
throw new Error('not supported by memory DB');
|
throw new Error('not supported by memory DB');
|
||||||
}
|
}
|
||||||
|
|
||||||
public async onGalleryIndexUpdate(): Promise<void> {
|
public async addIfNotExistSavedSearch(): Promise<void> {
|
||||||
throw new Error('not supported by memory DB');
|
throw new Error('not supported by memory DB');
|
||||||
}
|
}
|
||||||
|
|
||||||
public async addIfNotExistSavedSearch(
|
public async addSavedSearch(): Promise<void> {
|
||||||
name: string,
|
|
||||||
searchQuery: SearchQueryDTO,
|
|
||||||
lockedAlbum?: boolean
|
|
||||||
): Promise<void> {
|
|
||||||
throw new Error('not supported by memory DB');
|
throw new Error('not supported by memory DB');
|
||||||
}
|
}
|
||||||
|
|
||||||
public async addSavedSearch(
|
public async deleteAlbum(): Promise<void> {
|
||||||
name: string,
|
|
||||||
searchQuery: SearchQueryDTO,
|
|
||||||
lockedAlbum?: boolean
|
|
||||||
): Promise<void> {
|
|
||||||
throw new Error('not supported by memory DB');
|
|
||||||
}
|
|
||||||
|
|
||||||
public async deleteAlbum(id: number): Promise<void> {
|
|
||||||
throw new Error('not supported by memory DB');
|
throw new Error('not supported by memory DB');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user