mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
fixed index.ts errors
This commit is contained in:
parent
8936c7958b
commit
054ccf2f4f
|
|
@ -3,7 +3,7 @@ import fetch from "node-fetch";
|
|||
|
||||
import checks from "./checks";
|
||||
|
||||
const [owner, repo] = process.env.GITHUB_REPOSITORY.split("/");
|
||||
const [owner, repo] = String(process.env.GITHUB_REPOSITORY).split("/");
|
||||
|
||||
function getCurrentCommitSha() {
|
||||
return cp
|
||||
|
|
@ -45,7 +45,7 @@ async function setStatus(context: any, state: string, description: string) {
|
|||
try {
|
||||
const response = await callback();
|
||||
await setStatus(name, "success", response);
|
||||
} catch (err) {
|
||||
} catch (err: any) {
|
||||
const message = err ? err.message : "Something went wrong";
|
||||
await setStatus(name, "failure", message);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user