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;