File tree 4 files changed +18
-12
lines changed
plugin-bootstrap/src/providers
4 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ export class SqlJsDatabaseAdapter
75
75
tableName : string ;
76
76
} ) : Promise < Memory [ ] > {
77
77
const placeholders = params . roomIds . map ( ( ) => "?" ) . join ( ", " ) ;
78
- let sql = `SELECT * FROM memories WHERE 'type' = ? AND agentId = ? AND roomId IN (${ placeholders } )` ;
78
+ const sql = `SELECT * FROM memories WHERE 'type' = ? AND agentId = ? AND roomId IN (${ placeholders } )` ;
79
79
const stmt = this . db . prepare ( sql ) ;
80
80
const queryParams = [ params . tableName , params . agentId , ...params . roomIds ] ;
81
81
console . log ( { queryParams } )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import eslintGlobalConfig from "../../eslint.global.mjs" ;
2
2
3
- export default [ ...eslintGlobalConfig ] ;
3
+ export default [
4
+ {
5
+ ignores : [
6
+ '**/node_modules/*' ,
7
+ '**/coverage/*' ,
8
+ '**/dist/*' ,
9
+ '**/types/*' ,
10
+ '**/scripts/concatenated-output.ts' ,
11
+ 'rollup.config.js' ,
12
+ 'jest.config.js' ,
13
+ 'docs/'
14
+ ]
15
+ } ,
16
+ ...eslintGlobalConfig
17
+ ] ;
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ const timeProvider: Provider = {
7
7
// Get UTC time since bots will be communicating with users around the global
8
8
const options = {
9
9
timeZone : "UTC" ,
10
- dateStyle : "full" as "full" ,
11
- timeStyle : "long" as "long" ,
10
+ dateStyle : "full" as const ,
11
+ timeStyle : "long" as const ,
12
12
} ;
13
13
const humanReadable = new Intl . DateTimeFormat ( "en-US" , options ) . format (
14
14
currentDate
You can’t perform that action at this time.
0 commit comments