Rename to conform to naming scheme

This commit is contained in:
Nicolai Ort 2023-04-25 19:45:03 +02:00
parent ea3d757988
commit 0018ea2bb1
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import { AuthService, OpenAPI, RunnerOrganizationService, RunnerService, RunnerT
import * as dotenv from 'dotenv';
dotenv.config()
const groupID = 79;
const teamID = 79;
const orgID = -1;
const distanceMeter = 3300;
@ -20,8 +20,8 @@ console.log("Logged in")
const runners = await RunnerService.runnerControllerGetAll();
let filteredRunners = [];
if(groupID !== -1){
filteredRunners = runners.filter((r) => r.group.id == groupID);
if(teamID !== -1){
filteredRunners = runners.filter((r) => r.group.id == teamID);
} else{
filteredRunners = runners.filter((r) => r.group.id == orgID || r.group.parentGroup?.id == orgID);
}