ok but why does this not work ``` await this.db.batch([ this.db.insert(blobs).values({ hash:

ok but why does this not work

await this.db.batch([
      this.db.insert(blobs).values({ hash: blobHash }),
      this.db
        .insert(assets)
        .values({ projectId, blobId: sql`last_insert_rowid()` })
        .returning({ assetId: assets.id }),
    ]);


    [cause]: Error: FOREIGN KEY constraint failed

like what
Was this page helpful?