async function tidyup(project) {
    if(!project.group_id) return; //hopefully only for dev..
    if(project.removed) {
        console.log("removed project.. making sure group is deactivated", project.group_id);
        //deactivate auth grouop
        const res = await axios.put(config.auth.api+"/group/"+project.group_id, {
            active: false,
        }, {
            headers: { authorization: "Bearer "+config.warehouse.jwt, }
        });
        console.log(res.status);
    }
}
//api does this now so it shouldn't be necessary.. but for migration
api does this now so it shouldn't be necessary.. but for migration
api does this now so it shouldn ' t be necessary .. but for migration
async function tidyup(project) {
    if(!project.group_id) return; 
    if(project.removed) {
        console.log("removed project.. making sure group is deactivated", project.group_id);
        const res = await axios.put(config.auth.api+"/group/"+project.group_id, {
            active: false,
        }, {
            headers: { authorization: "Bearer "+config.warehouse.jwt, }
        });
        console.log(res.status);
    }
}
async function tidyup ( project ) { if ( ! project . group_id ) return ; if ( project . removed ) { console . log ( "removed project.. making sure group is deactivated" , project . group_id ) ; const res = await axios . put ( config . auth . api + "/group/" + project . group_id , { active : false , } , { headers : { authorization : "Bearer " + config . warehouse . jwt , } } ) ; console . log ( res . status ) ; } }
api does this now so it shouldn't be necessary.. but for migration
api does this now so it shouldn ' t be necessary .. but for migration
//hopefully only for dev.. //deactivate auth grouop