Skip to content

Commit

Permalink
Fix incorrect import in recognize.util.js
Browse files Browse the repository at this point in the history
Changed the ES6 import statement to require for consistency and
compatibility with the existing CommonJS module system used in the
recognize.util.js file. This ensures that the copyFileSync function
is properly imported from fs.util and aligns with the project's module
usage.
  • Loading branch information
skrashevich committed Nov 26, 2023
1 parent b7ebd31 commit 5431ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/util/recognize.util.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fs = require('fs');
import { copyFileSync } from './fs.util';
const { copyFileSync } = require('./fs.util');
const { STORAGE } = require('../constants')();

module.exports.save = {
Expand Down

0 comments on commit 5431ea7

Please sign in to comment.