mirror of
https://github.com/withastro/astro.git
synced 2025-02-24 22:46:02 -05:00
fix: bad context reference
This commit is contained in:
parent
715b6796a9
commit
6f1941dab8
1 changed files with 0 additions and 5 deletions
|
@ -25,11 +25,6 @@ export function createRemoteDatabaseClient(appToken: string, remoteDbURL: string
|
|||
const url = new URL('/db/query', remoteDbURL);
|
||||
|
||||
const db = drizzleProxy(async (sql, parameters, method) => {
|
||||
const context = batchContext.getStore();
|
||||
if (context) {
|
||||
context.queries.push({ sql, args: parameters });
|
||||
return { rows: [] };
|
||||
}
|
||||
const requestBody: InStatement = { sql, args: parameters };
|
||||
const res = await fetch(url, {
|
||||
method: 'POST',
|
||||
|
|
Loading…
Add table
Reference in a new issue