Skip to content

Commit

Permalink
Merge branch 'develop' into reg/threads-scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] committed Mar 6, 2023
2 parents 5f70c2c + 43640a8 commit 96f8468
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -54,7 +54,6 @@ export async function addOAuthApp(applicationParams: OauthAppsAddParams, uid: IU
_id: user._id,
username: user.username,
},
_id: '',
};

if (application.redirectUri.length === 0) {
Expand All @@ -63,6 +62,8 @@ export async function addOAuthApp(applicationParams: OauthAppsAddParams, uid: IU
});
}

application._id = (await OAuthApps.insertOne(application)).insertedId;
return application;
return {
...application,
_id: (await OAuthApps.insertOne(application)).insertedId,
};
}

0 comments on commit 96f8468

Please sign in to comment.