From e324c309d0a1e46aea33cf11c45d792d0ed28a4c Mon Sep 17 00:00:00 2001
From: Matthias Betz <matthias.betz@hft-stuttgart.de>
Date: Thu, 18 Jul 2024 16:43:59 +0200
Subject: [PATCH] fixing typescript import

---
 routes/account.ts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/routes/account.ts b/routes/account.ts
index 669424f3..81d44e99 100644
--- a/routes/account.ts
+++ b/routes/account.ts
@@ -2,6 +2,7 @@ import fs from 'fs'
 import async from 'async'
 import bcrypt from 'bcryptjs'
 import * as passportSaml from 'passport-saml'
+import uuidv4 = require('uuid/v4');
 import dbconn from '../config/dbconn'
 import methods from '../functions/methods'
 import gitlab from '../functions/gitlab'
@@ -435,7 +436,6 @@ export = function (app:any, config:any, passport:any, lang:string) {
               if (!req.files) {
                 callback(null, newLogoFile)
               } else {
-                const uuidv4 = require('uuid/v4');
                 let fileName = uuidv4();
                 newLogoFile.mv(logoDir + fileName, function(err:any) {
                   newLogoFile = logoDir + fileName
@@ -532,7 +532,6 @@ export = function (app:any, config:any, passport:any, lang:string) {
                 callback(null, newLogoFile)
               } else {
                 newLogoFile = req.files.logo
-                const uuidv4 = require('uuid/v4');
                 let fileName = uuidv4();
                 newLogoFile.mv(logoDir + fileName, function(err:any) {
                   newLogoFile = logoDir + fileName
-- 
GitLab