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();
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const { password, creator, ...sharing } = req.resultPipe as SharingDTO;
|
||||
RenderingMWs.renderMessage(res, sharing);
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ import {
|
||||
import {
|
||||
ClientAlbumConfig,
|
||||
ClientFacesConfig,
|
||||
ClientMapConfig, ClientMediaConfig,
|
||||
ClientMapConfig,
|
||||
ClientMetaFileConfig,
|
||||
ClientPhotoConfig,
|
||||
ClientRandomPhotoConfig,
|
||||
|
@ -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]';
|
||||
|
||||
|
@ -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');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user