Spaces:
Build error
Build error
twenty / packages /twenty-server /src /engine /metadata-modules /logic-function /utils /logic-function-create-hash.utils.ts
| 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); | |
| }; | |