packages/@uppy/golden-retriever/src/IndexedDBStore.js
function migrateExpiration (store) {
  const request = store.openCursor()
  request.onsuccess = (event) => {
    const cursor = event.target.result
    if (!cursor) {
      return
    }
    const entry = cursor.value
    entry.expires = Date.now() + DEFAULT_EXPIRY
    cursor.update(entry)
  }
}
function migrateExpiration (store) {
  const request = store.openCursor()
  request.onsuccess = (event) => {
    const cursor = event.target.result
    if (!cursor) {
      return
    }
    const entry = cursor.value
    entry.expires = Date.now() + DEFAULT_EXPIRY
    cursor.update(entry)
  }
}
function migrateExpiration ( store ) { const request = store . openCursor ( ) request . onsuccess = ( event ) => { const cursor = event . target . result if ( ! cursor ) { return } const entry = cursor . value entry . expires = Date . now ( ) + DEFAULT_EXPIRY cursor . update ( entry ) } }
Set default `expires` dates on existing stored blobs.
Set default expires dates on existing stored blobs .