mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 20:19:26 +01:00
catch error message
This commit is contained in:
@@ -2,6 +2,7 @@ import {getDailyStats, getMonthlyStats, getTotalStats, getWeeklyStats} from "App
|
||||
import Redis from "@ioc:Adonis/Addons/Redis";
|
||||
import axios from 'axios'
|
||||
import Env from "@ioc:Adonis/Core/Env";
|
||||
import Logger from "@ioc:Adonis/Core/Logger";
|
||||
|
||||
export async function UpdateGitHubReadme(): Promise<void> {
|
||||
const daily_stats = await getDailyStats()
|
||||
@@ -67,5 +68,9 @@ export async function UpdateGitHubReadme(): Promise<void> {
|
||||
email: 'me@arthurdanjou.fr'
|
||||
}
|
||||
}
|
||||
}).then((result) => {
|
||||
Logger.info(result.data)
|
||||
}).catch((error) => {
|
||||
Logger.error(error)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user