I'm hoping all the alter/drop/rename/add column stuff in a Function and everything?
I'm hoping all the alter/drop/rename/add column stuff in a Function and everything?
DELETE FROM verification_token where token = ?1 RETURNING *result.results.length <= 0 is TRUE on productionrun() does not return resultsall() or first().run() should throw an error if it returns results.run()? It currently does exactly the same as all().run()'s behaviour tbhrun() returns results.
const result = await this.db
.prepare('DELETE FROM verification_token WHERE token = ?1 RETURNING *')
.bind(token)
.run();
if (result.error) {
return { data: null, error: Error(`failed to delete from db: ${result.error}`) };
}
if (result.results.length <= 0) {
return { data: null, error: null };
}
const vToken = result.results[0];