mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 08:31:59 +00:00
chore(server): remove unused method (#8639)
This commit is contained in:
parent
9681f5b360
commit
369bd17c8b
2 changed files with 0 additions and 20 deletions
|
@ -346,19 +346,6 @@ describe(SystemConfigService.name, () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('refreshConfig', () => {
|
|
||||||
it('should notify the subscribers', async () => {
|
|
||||||
const changeMock = jest.fn();
|
|
||||||
const subscription = sut.config$.subscribe(changeMock);
|
|
||||||
|
|
||||||
await sut.refreshConfig();
|
|
||||||
|
|
||||||
expect(changeMock).toHaveBeenCalledWith(defaults);
|
|
||||||
|
|
||||||
subscription.unsubscribe();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('getCustomCss', () => {
|
describe('getCustomCss', () => {
|
||||||
it('should return the default theme', async () => {
|
it('should return the default theme', async () => {
|
||||||
await expect(sut.getCustomCss()).resolves.toEqual(defaults.theme.customCss);
|
await expect(sut.getCustomCss()).resolves.toEqual(defaults.theme.customCss);
|
||||||
|
|
|
@ -90,13 +90,6 @@ export class SystemConfigService {
|
||||||
return mapConfig(newConfig);
|
return mapConfig(newConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
// this is only used by the cli on config change, and it's not actually needed anymore
|
|
||||||
async refreshConfig() {
|
|
||||||
this.eventRepository.serverSend(ServerEvent.CONFIG_UPDATE, null);
|
|
||||||
await this.core.refreshConfig();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
getStorageTemplateOptions(): SystemConfigTemplateStorageOptionDto {
|
getStorageTemplateOptions(): SystemConfigTemplateStorageOptionDto {
|
||||||
const options = new SystemConfigTemplateStorageOptionDto();
|
const options = new SystemConfigTemplateStorageOptionDto();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue