mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 02:36:19 +00:00
Merge pull request #164 from SyncrowIOT/return-defualt-scene-icon
Remove type filter from getAllIcons method
This commit is contained in:
@ -385,9 +385,7 @@ export class SceneService {
|
||||
|
||||
async getAllIcons() {
|
||||
try {
|
||||
const icons = await this.sceneIconRepository.find({
|
||||
where: { iconType: SceneIconType.Other },
|
||||
});
|
||||
const icons = await this.sceneIconRepository.find();
|
||||
|
||||
// Remove duplicates based on 'icon' property
|
||||
const uniqueIcons = icons.filter(
|
||||
|
Reference in New Issue
Block a user