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();
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { password, creator, ...sharing } = req.resultPipe as SharingDTO;
RenderingMWs.renderMessage(res, sharing);
}

View File

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

View File

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

View File

@ -1,6 +1,5 @@
import { AlbumBaseDTO } from '../../../../common/entities/album/AlbumBaseDTO';
import { SearchQueryDTO } from '../../../../common/entities/SearchQueryDTO';
import { IAlbumManager } from '../interfaces/IAlbumManager';
import {AlbumBaseDTO} from '../../../../common/entities/album/AlbumBaseDTO';
import {IAlbumManager} from '../interfaces/IAlbumManager';
export class AlbumManager implements IAlbumManager {
resetPreviews(): Promise<void> {
@ -11,27 +10,15 @@ export class AlbumManager implements IAlbumManager {
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');
}
public async addIfNotExistSavedSearch(
name: string,
searchQuery: SearchQueryDTO,
lockedAlbum?: boolean
): Promise<void> {
public async addSavedSearch(): Promise<void> {
throw new Error('not supported by memory DB');
}
public async addSavedSearch(
name: string,
searchQuery: SearchQueryDTO,
lockedAlbum?: boolean
): Promise<void> {
throw new Error('not supported by memory DB');
}
public async deleteAlbum(id: number): Promise<void> {
public async deleteAlbum(): Promise<void> {
throw new Error('not supported by memory DB');
}