mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-24 21:07:54 +00:00
Add activation code endpoint
This commit is contained in:
@@ -117,9 +117,7 @@ export class UserSpaceService {
|
||||
);
|
||||
}
|
||||
|
||||
private async getDeviceUUIDsForSpace(
|
||||
unitUuid: string,
|
||||
): Promise<{ uuid: string }[]> {
|
||||
async getDeviceUUIDsForSpace(unitUuid: string): Promise<{ uuid: string }[]> {
|
||||
const devices = await this.spaceRepository.find({
|
||||
where: { uuid: unitUuid },
|
||||
relations: ['devices', 'devices.productDevice'],
|
||||
@@ -130,7 +128,7 @@ export class UserSpaceService {
|
||||
return allDevices.map((device) => ({ uuid: device.uuid }));
|
||||
}
|
||||
|
||||
private async addUserPermissionsToDevices(
|
||||
async addUserPermissionsToDevices(
|
||||
userUuid: string,
|
||||
deviceUUIDs: { uuid: string }[],
|
||||
): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user