© 2026 Hedgehog Software, LLC
D1_ERROR: Failed to parse body as JSON
const sqlQuery = env.DB.prepare( `SELECT * FROM Resources WHERE resource_id = ? and account_id = ?` ).bind(resourceId, authUser.account_id); const resource = await sqlQuery.first<Resource>();