X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Futils.ts;h=6b9333b533a6282d83343d22696a69ec89251ac6;hb=75eb27a5da5e5d4fdad3c1dfe04e68fdee3b0e49;hp=6c95a43b62afea04ac21c4636ce6eaecd572ff14;hpb=8f608a4cb22ab232cfab20665050764b38bac9c7;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/utils.ts b/server/helpers/utils.ts index 6c95a43b6..6b9333b53 100644 --- a/server/helpers/utils.ts +++ b/server/helpers/utils.ts @@ -1,9 +1,10 @@ import { remove } from 'fs-extra' import { Instance as ParseTorrent } from 'parse-torrent' import { join } from 'path' -import { ResultList } from '../../shared' +import { sha256 } from '@shared/extra-utils' +import { ResultList } from '@shared/models' import { CONFIG } from '../initializers/config' -import { execPromise, execPromise2, randomBytesPromise, sha256 } from './core-utils' +import { execPromise, execPromise2, randomBytesPromise } from './core-utils' import { logger } from './logger' function deleteFileAndCatch (path: string) {