Feature: update piclist core

This commit is contained in:
萌萌哒赫萝
2023-08-30 06:10:28 -07:00
parent ea61614ddd
commit 0eb7bacb84
3 changed files with 586 additions and 577 deletions

View File

@@ -21,16 +21,13 @@ export default class ImgurApi {
private static async makeRequest (
method: 'delete',
url: string,
config: IConfig,
logError: boolean = true
config: IConfig
): Promise<boolean> {
try {
const response: AxiosResponse = await axios[method](url, config)
return response.status === 200
} catch (error) {
if (logError) {
console.error(error)
}
console.error(error)
return false
}
}