Error: D1_ERROR: Error: SQL execute error: Execute returned results - did you mean to call query?
9/13/23, 8:59 PM
bun:sqlite instead of better-sqlite3.waitUntil for the data insertion in request A and immediately redirect to request B, or do I have to wait until the insert is complete before redirecting to request B?await returns the data is inserted. D1 is strongly consistent - read-your-own-writes - from within the same Worker invocation.await 

bun:sqliteawait c.env.DB.prepare(`DELETE FROM my_codes WHERE code = ? RETURNING *`).bind(code).first()