This repository was archived by the owner on May 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +428
-436
lines changed
Expand file tree Collapse file tree 4 files changed +428
-436
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ export class InMemoryDB implements CommonDB {
215215 ) : Promise < number > {
216216 const table = this . cfg . tablesPrefix + q . table
217217 if ( ! this . data [ table ] ) return 0
218- const ids = queryInMemory ( q , Object . values ( this . data [ table ] ! ) as ROW [ ] ) . map ( r => r . id )
218+ const ids = queryInMemory ( q , Object . values ( this . data [ table ] ) as ROW [ ] ) . map ( r => r . id )
219219 return await this . deleteByIds ( q . table , ids )
220220 }
221221
Original file line number Diff line number Diff line change @@ -45,6 +45,6 @@ export class InMemoryKeyValueDB implements CommonKeyValueDB {
4545
4646 async count ( table : string ) : Promise < number > {
4747 this . data [ table ] ||= { }
48- return Object . keys ( this . data [ table ] ! ) . length
48+ return Object . keys ( this . data [ table ] ) . length
4949 }
5050}
Original file line number Diff line number Diff line change 11{
22 "extends" : " @naturalcycles/dev-lib/cfg/tsconfig.json" ,
3- "compilerOptions" : {
4- "outDir" : " dist" ,
5- },
3+ "compilerOptions" : {},
64 "include" : [" src" ],
75 "exclude" : [" **/__exclude" ],
86}
You can’t perform that action at this time.
0 commit comments