remove left over logs

This commit is contained in:
rubikscraft 2022-04-16 17:10:16 +02:00
parent ff07ee94c6
commit bd20c99f84
No known key found for this signature in database
GPG key ID: 1463EBE9200A5CD4

View file

@ -35,16 +35,9 @@ export class ImageManagerService {
image: Buffer,
userid: string,
): AsyncFailable<EImageBackend> {
let startTime = Date.now();
console.log('Uploading image');
const fullMime = await this.getFullMimeFromBuffer(image);
if (HasFailed(fullMime)) return fullMime;
console.log('Got full mime after ' + (Date.now() - startTime) + 'ms');
startTime = Date.now();
const processedImage = await this.processService.process(
image,
fullMime,
@ -52,17 +45,12 @@ export class ImageManagerService {
);
if (HasFailed(processedImage)) return processedImage;
console.log('Processed image after ' + (Date.now() - startTime) + 'ms');
startTime = Date.now();
const imageEntity = await this.imagesService.create(
processedImage,
fullMime.mime,
);
if (HasFailed(imageEntity)) return imageEntity;
console.log('Created image after ' + (Date.now() - startTime) + 'ms');
return imageEntity;
}