Skip to content

Commit

Permalink
fixed issue with import
Browse files Browse the repository at this point in the history
  • Loading branch information
manafasif committed Dec 6, 2023
1 parent 306eee5 commit f0345a5
Show file tree
Hide file tree
Showing 5 changed files with 198 additions and 41 deletions.
206 changes: 180 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
"cross-env": "^7.0.3",
"nodemon": "^2.0.22",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
"typescript": "^5.3.2"
}
}
3 changes: 2 additions & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { initDB } from "./utils/db";
import { logHandler } from "./routes/log";
import { checkUptime } from "./routes/log";


const app = express();

const PORT = process.env.PORT || 8081,
Expand Down Expand Up @@ -120,3 +119,5 @@ function initializeHTTPS() {
console.error(err);
}
}


4 changes: 3 additions & 1 deletion src/utils/trigger_workflows.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import * as fetch from "node-fetch";
// import * as fetch from "node-fetch";
import { RequestInfo, RequestInit } from "node-fetch";
const fetch = (url: RequestInfo, init?: RequestInit) => import("node-fetch").then(({ default: fetch }) => fetch(url, init));
import { logger } from './logger';

// Function to trigger GitHub Actions workflow
Expand Down
Loading

0 comments on commit f0345a5

Please sign in to comment.