diff --git a/share/organisation/check.rhai b/share/organisation/check.rhai index 8b0cc84..f75829d 100644 --- a/share/organisation/check.rhai +++ b/share/organisation/check.rhai @@ -20,8 +20,8 @@ fn conditions() { let password = base64_decode(gitea.data.password); let headers = http_header_basic(username,password); let response = http_get_json(`http://gitea-http.${global::DOMAIN}-ci.svc:3000/api/v1/orgs/${org}/repos`, headers); - log_warn(type_of(response.code*1)); - if (response.code*1>=200&&response.code*1<300) { + log_warn(type_of(response.code.to_int())); + if (response.code.to_int()>=200&&response.code.to_int()<300) { repos += response.json.map(|p| p.name); repos.sort(); log_info(`Found ${repos.len} repos`);