Skip to content

Commit

Permalink
fix(file-utils): rewrite requires
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-pichon committed Feb 8, 2023
1 parent 57009a0 commit 548ad3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/upload/server/services/image-manipulation.js
Expand Up @@ -7,7 +7,9 @@ const fs = require('fs');
const { join } = require('path');
const sharp = require('sharp');

const { bytesToKbytes, writableDiscardStream } = require('@strapi/utils/lib/file');
const {
file: { bytesToKbytes, writableDiscardStream },
} = require('@strapi/utils');
const { getService } = require('../utils');

const FORMATS_TO_PROCESS = ['jpeg', 'png', 'webp', 'tiff', 'svg', 'gif', 'avif'];
Expand Down

0 comments on commit 548ad3e

Please sign in to comment.