mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:29:32 -05:00 
			
		
		
		
	chore(server): remove unused method (#8639)
This commit is contained in:
		
							parent
							
								
									9681f5b360
								
							
						
					
					
						commit
						369bd17c8b
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user