@@ -202,7 +202,7 @@ const spacetimedb = schema(
202202
203203 // repeating_test_arg table with scheduled(repeating_test)
204204 table (
205- { name : 'repeating_test_arg' , scheduled : 'repeating_test' } as any ,
205+ { name : 'repeating_test_arg' , scheduled : 'repeating_test' } ,
206206 repeatingTestArg
207207 ) ,
208208
@@ -231,7 +231,7 @@ spacetimedb.view(
231231
232232// init
233233spacetimedb . init ( ctx => {
234- ctx . db . repeating_test_arg . insert ( {
234+ ctx . db . repeatingTestArg . insert ( {
235235 prev_time : ctx . timestamp ,
236236 scheduled_id : 0n , // u64 autoInc placeholder (engine will assign)
237237 scheduled_at : ScheduleAt . interval ( 1000000n ) , // 1000ms
@@ -308,7 +308,7 @@ spacetimedb.reducer(
308308 } ) ;
309309 }
310310
311- const rowCountBefore = ctx . db . test_a . count ( ) ;
311+ const rowCountBefore = ctx . db . testA . count ( ) ;
312312 console . info ( `Row count before delete: ${ rowCountBefore } ` ) ;
313313
314314 // Delete rows by the indexed column `x` in [5,10)
@@ -339,7 +339,7 @@ spacetimedb.reducer(
339339
340340 console . info ( `Row count after delete: ${ rowCountAfter } ` ) ;
341341
342- const otherRowCount = ctx . db . test_a . count ( ) ;
342+ const otherRowCount = ctx . db . testA . count ( ) ;
343343 console . info ( `Row count filtered by condition: ${ otherRowCount } ` ) ;
344344
345345 console . info ( 'MultiColumn' ) ;
0 commit comments