1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Code cleanup

This commit is contained in:
Patrik J. Braun 2022-12-10 00:32:31 +01:00
parent ac1f226bfe
commit 3ac0bb22b2
4 changed files with 11 additions and 24 deletions

View File

@ -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);
} }

View File

@ -21,7 +21,7 @@ import {
import { import {
ClientAlbumConfig, ClientAlbumConfig,
ClientFacesConfig, ClientFacesConfig,
ClientMapConfig, ClientMediaConfig, ClientMapConfig,
ClientMetaFileConfig, ClientMetaFileConfig,
ClientPhotoConfig, ClientPhotoConfig,
ClientRandomPhotoConfig, ClientRandomPhotoConfig,

View File

@ -1,15 +1,14 @@
import { import {
DirectoryDTOUtils,
ParentDirectoryDTO, ParentDirectoryDTO,
} from '../../common/entities/DirectoryDTO'; } from '../../common/entities/DirectoryDTO';
import { Logger } from '../Logger'; import {Logger} from '../Logger';
import { Config } from '../../common/config/private/Config'; import {Config} from '../../common/config/private/Config';
import { DiskManagerTH } from './threading/ThreadPool'; import {DiskManagerTH} from './threading/ThreadPool';
import { import {
DirectoryScanSettings, DirectoryScanSettings,
DiskMangerWorker, DiskMangerWorker,
} from './threading/DiskMangerWorker'; } from './threading/DiskMangerWorker';
import { FileDTO } from '../../common/entities/FileDTO'; import {FileDTO} from '../../common/entities/FileDTO';
const LOG_TAG = '[DiskManager]'; const LOG_TAG = '[DiskManager]';

View File

@ -1,6 +1,5 @@
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 {
resetPreviews(): Promise<void> { resetPreviews(): Promise<void> {
@ -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');
} }