d9494a5
1
2
3
4
5
6
7
8
9
10
import { createHash } from 'crypto'; // TODO: migrate to twenty-shared and spread everywhere export const logicFunctionCreateHash = (fileContent: string) => { return createHash('sha512') .update(fileContent) .digest('hex') .substring(0, 32); };