fixed expiration hopefully

This commit is contained in:
uh wot 2021-09-02 21:10:30 +02:00
parent e3104e3cde
commit 9be0b7d316
Signed by: uhwot
GPG Key ID: CB2454984587B781
2 changed files with 2 additions and 3 deletions

2
dist/worker.js vendored

File diff suppressed because one or more lines are too long

View File

@ -78,9 +78,8 @@ async function handler(type, request) {
}
license_token = user_data.USER.OPTIONS.license_token
const expiration = user_data.USER.OPTIONS.expiration_timestamp
await KV.put('license_token', license_token, { expiration: expiration })
await KV.put('license_token', license_token, { expirationTtl: 3600 })
}
const url = new URL(request.url)