You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I have a pretty strange Error, and I can't find out why this happens. My db.js:
exportconstdb=newDexie('database');db.version(1.4).stores({// Table to store badges which got loaded by #list_badgesbadges: "&rfid, project_id",// , label, global_id, valid_now, allowed_areas});
list.svelte:
for(constkeyindata){// key has value of rfid id and is used as primary key in DBif(data.hasOwnProperty(key)){constentry=data[key];// use put to update entries and add new itemsawaitdb.badges.put({rfid: key,// project_id is set by svelteproject_id: project_id,label: entry.label,global_id: entry.global_id,valid_now: entry.valid_now,allowed_areas: entry.allowed_area_ids,});}}awaitdb.badges.where(project_id).notEqual(project_id).delete();
On .delete() I get the error name: 'SchemaError', message: 'KeyPath 467 on object store badges is not indexed'. I don't get why, because on stores({}) I declared the indexes (I think). Is this an issue of dexie/indexeddb or is it me?
The text was updated successfully, but these errors were encountered:
Hi there,
I have a pretty strange Error, and I can't find out why this happens. My
db.js
:list.svelte
:On
.delete()
I get the errorname: 'SchemaError', message: 'KeyPath 467 on object store badges is not indexed'
. I don't get why, because onstores({})
I declared the indexes (I think). Is this an issue of dexie/indexeddb or is it me?The text was updated successfully, but these errors were encountered: