Update cache.ts

This commit is contained in:
Daniel Hougaard
2025-07-09 23:36:46 +04:00
parent 3c4549e262
commit 41787908dd
+1 -1
View File
@@ -1,7 +1,7 @@
import { crypto } from "@app/lib/crypto/cryptography"; import { crypto } from "@app/lib/crypto/cryptography";
export const generateCacheKeyFromData = (data: unknown) => export const generateCacheKeyFromData = (data: unknown) =>
crypto.rawCrypto. crypto.rawCrypto
.createHash("sha256") .createHash("sha256")
.update(JSON.stringify(data)) .update(JSON.stringify(data))
.digest("base64") .digest("base64")