mirror of
https://github.com/jiangrui1994/CloudSaver.git
synced 2026-01-13 16:48:46 +08:00
format:format and fix code
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import axios, { AxiosInstance, AxiosRequestHeaders } from "axios";
|
||||
import tunnel from "tunnel";
|
||||
import { config } from "../config";
|
||||
import GlobalSetting from "../models/GlobalSetting";
|
||||
|
||||
interface ProxyConfig {
|
||||
host: string;
|
||||
|
||||
@@ -1,8 +1,15 @@
|
||||
import { Response, NextFunction } from "express";
|
||||
import { Logger } from "../utils/logger";
|
||||
|
||||
interface CustomError {
|
||||
name?: string;
|
||||
message: string;
|
||||
success?: boolean;
|
||||
}
|
||||
|
||||
export default function handleError(
|
||||
res: Response,
|
||||
error: any,
|
||||
error: CustomError | unknown,
|
||||
message: string,
|
||||
next: NextFunction
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user