feat: adopt to /api/v2/instance to fetch app vapid_key (#3193)

This commit is contained in:
TAKAHASHI Shuuji 2025-03-02 19:56:27 +09:00 committed by GitHub
parent 74b7c9da2c
commit 7d9712c209
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 38 additions and 18 deletions

View file

@ -16,10 +16,10 @@ export default defineDriver((driver: Driver = memory()) => {
return driver.hasItem(key, {})
},
async setItem(key: string, value: any) {
async setItem(key: string, value: any, opts: any = {}) {
await Promise.all([
memoryDriver.setItem?.(key, value, {}),
driver.setItem?.(key, value, {}),
driver.setItem?.(key, value, opts),
])
},
async getItem(key: string) {