From b1b5f82f95765a8725b07f6e1ee48e22bbeebca7 Mon Sep 17 00:00:00 2001 From: Trivernis Date: Thu, 9 Jan 2020 17:53:15 +0100 Subject: [PATCH] Fixed critical bug UploadConfirmation couldn't be found --- src/routes/UploadRoute.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/UploadRoute.ts b/src/routes/UploadRoute.ts index 2483de5..1ecb516 100644 --- a/src/routes/UploadRoute.ts +++ b/src/routes/UploadRoute.ts @@ -59,7 +59,7 @@ export class UploadRoute extends Route { this.router.use(fileUpload()); // Uploads a file to the data directory and returns the filename this.router.use(async (req, res) => { - let uploadConfirmation: UploadConfirmation; + let uploadConfirmation: IUploadConfirmation; if (req.session.userId) { if (req.files.profilePicture) { uploadConfirmation = await this.uploadProfilePicture(req); @@ -94,7 +94,7 @@ export class UploadRoute extends Route { * The user gets updated with the new profile picture url. * @param request */ - private async uploadProfilePicture(request: any): Promise { + private async uploadProfilePicture(request: any): Promise { let success = false; let error: string; let fileName: string;