Skip to content

Commit e34ead3

Browse files
authored
Merge pull request #9 from bflorian/oauth-in-context-fix
fix: corrected error in oauth-in app context storage
2 parents f95394b + e38774d commit e34ead3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/file-context-store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports = class FileContextStore {
5353
* @returns {Promise<void>}
5454
*/
5555
async update(installedAppId, params) {
56-
const record = await this.get(installedAppId)
56+
const record = (await this.get(installedAppId)) || {}
5757
for (const name of Object.keys(params)) {
5858
record[name] = params[name]
5959
}

0 commit comments

Comments
 (0)