Skip to content

Commit

Permalink
fix sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
amerelo committed Jun 2, 2022
1 parent 9d77057 commit 8c1f49d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ ENGINE_SERVER_API_KEYS=someAuthKey4CsmlServer,someOtherAuthKey
ENGINE_ENCRYPTION_SECRET=some-secret-string # if not set, data will not be stored encrypted
TTL_DURATION=30 # auto-remove chatbot user data after X days
LOW_DATA_MODE=true # do not store contents of sent/received messages
STEP_LIMIT=30 # step the limit of steps that the interpreter can handle per request
DISABLE_SSL_VERIFY=false # reach trusted endpoints with known invalid certificates
DEBUG=true # print debug output in console
CSML_LOG_LEVEL=error # print log output in stderr. Possible values are error, warn, info, debug, trace.
Expand Down
2 changes: 1 addition & 1 deletion csml_engine/src/db_connectors/sqlite/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn add_messages_bulk(
conversation_id,

flow_id: &data.context.flow,
step_id: &data.context.step.get_step(),
step_id: data.context.step.get_step_ref(),
direction,
payload: encrypt_data(&message)?,
content_type: &message["content_type"].as_str().unwrap_or("text"),
Expand Down

0 comments on commit 8c1f49d

Please sign in to comment.