twenty / packages /twenty-server /src /engine /metadata-modules /logic-function /utils /logic-function-create-hash.utils.ts
Jules
Initial clean CRM deployment with prebuilt assets
d9494a5
Raw
History Blame Contribute Delete
260 Bytes
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);
};