File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import repl_factory from 'node:repl';
22import { once } from 'node:events' ;
33
44import { PowerSyncDatabase , SyncStreamConnectionMethod } from '@powersync/node' ;
5- import { default as Logger } from " js-logger" ;
5+ import { default as Logger } from ' js-logger' ;
66import { AppSchema , DemoConnector } from './powersync.js' ;
77import { exit } from 'node:process' ;
88
@@ -22,7 +22,7 @@ const main = async () => {
2222 database : {
2323 dbFilename : 'test.db'
2424 } ,
25- logger,
25+ logger
2626 } ) ;
2727 console . log ( await db . get ( 'SELECT powersync_rs_version();' ) ) ;
2828
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ export class DemoConnector implements PowerSyncBackendConnector {
3333
3434 const response = await fetch ( `${ process . env . BACKEND } /api/data/` , {
3535 method : 'POST' ,
36- headers : { 'Content-Type' : 'application/json' } ,
37- body : JSON . stringify ( { batch : entries } ) ,
36+ headers : { 'Content-Type' : 'application/json' } ,
37+ body : JSON . stringify ( { batch : entries } )
3838 } ) ;
3939 if ( response . status !== 200 ) {
4040 throw new Error ( `Server returned HTTP ${ response . status } : ${ await response . text ( ) } ` ) ;
You can’t perform that action at this time.
0 commit comments