mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 10:46:17 +00:00
Refactor filtering logic in FloorService
This commit is contained in:
@ -116,8 +116,9 @@ export class FloorService {
|
||||
.filter(
|
||||
(child) =>
|
||||
child.spaceType.type !== 'floor' &&
|
||||
child.spaceType.type !== 'building',
|
||||
) // Filter remaining floor and building types
|
||||
child.spaceType.type !== 'building' &&
|
||||
child.spaceType.type !== 'community',
|
||||
) // Filter remaining floor and building and community types
|
||||
.map((child) => ({
|
||||
uuid: child.uuid,
|
||||
name: child.spaceName,
|
||||
@ -130,8 +131,9 @@ export class FloorService {
|
||||
.filter(
|
||||
(child) =>
|
||||
child.spaceType.type !== 'floor' &&
|
||||
child.spaceType.type !== 'building',
|
||||
) // Filter remaining floor and building types
|
||||
child.spaceType.type !== 'building' &&
|
||||
child.spaceType.type !== 'community',
|
||||
) // Filter remaining floor and building and community types
|
||||
.map(async (child) => ({
|
||||
uuid: child.uuid,
|
||||
name: child.spaceName,
|
||||
|
Reference in New Issue
Block a user