Update cache-save.ts

This commit is contained in:
Daniil Zotov 2024-09-29 17:39:15 +03:00 committed by GitHub
parent aea58ec4e7
commit 96200b487e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,7 @@ import { createHash } from "node:crypto";
if (state.cacheEnabled && !state.cacheHit) {
const cacheKey = createHash('sha1')
.update(state.url)
.digest('base64')
.digest('base64');
try {
await saveCache([state.bunPath], cacheKey);