@@ -0,0 +1,8 @@
import { createHash } from 'crypto'
import { IDocProps } from '../interfaces/IDocProps'
export function getId(data: IDocProps) {
let sum = createHash('sha1')
sum.update(JSON.stringify(data))
return sum.digest('hex')
}
The note is not visible to the blocked user.