added / fixed some types

This commit is contained in:
mrfry 2022-03-14 19:35:42 +01:00
parent 5f12284bb8
commit bc5c293539
41 changed files with 4378 additions and 8304 deletions

View file

@ -211,7 +211,7 @@ function uploadFile(req: Request, path: string): Promise<any> {
fileDestination = path + '/' + fileName
}
file.mv(fileDestination, (err) => {
file.mv(fileDestination, (err: Error) => {
if (err) {
logger.Log(`Unable to upload file!`, logger.GetColor('redbg'))
console.error(err)