Skip to content

Commit

Permalink
fix(importPlayers): remove cut-off
Browse files Browse the repository at this point in the history
  • Loading branch information
jonassimoen committed Dec 4, 2023
1 parent 68ce445 commit 61aed09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/controllers/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ export const DeletePlayerHandler = async (req: any, rep: any) => {
}

export const ImportPlayersHandler = async (req: any, rep: any) => {
console.log("importing players");
rep.send({ msg: "Importing players has started" });
console.log("Import players started");
// should import images too: https://media.api-sports.io/football/teams/{team_id}.png

// const data = JSON.parse(fs.readFileSync(path.join(__dirname, '../assets/players.json'), 'utf-8')); # dev purposes only
Expand Down

0 comments on commit 61aed09

Please sign in to comment.