Skip to content

Commit

Permalink
fix: add crypto module for file hashing (#1186)
Browse files Browse the repository at this point in the history
Should resolve the following Sentry error:

> ReferenceError
>
> <anonymous>(UploadController)
>
> crypto is not defined
  • Loading branch information
aalemayhu committed Jun 21, 2023
1 parent fde9cb3 commit e6ab57b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/UploadController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import fs from 'fs';
import path from 'path';

import express, { Response } from 'express';
import crypto from 'crypto';

import { getOwner } from '../lib/User/getOwner';
import { ZipHandler } from '../lib/anki/zip';
Expand Down

0 comments on commit e6ab57b

Please sign in to comment.