Skip to content

Commit

Permalink
fix: bug where context state was overwritten at install
Browse files Browse the repository at this point in the history
  • Loading branch information
bflorian committed Oct 17, 2023
1 parent c7a5207 commit ec3f9c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/smart-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ class SmartApp {
this._log.event(evt)
await this._installedHandler(context, evt.installData)
if (this._contextStore) {
await this._contextStore.put({
await this._contextStore.update(context.installedAppId, {
installedAppId: context.installedAppId,
locationId: context.locationId,
authToken: context.authToken,
Expand Down

0 comments on commit ec3f9c2

Please sign in to comment.