Skip to content

Commit

Permalink
Fix the Zapier oAuth return url to the new one (#7215)
Browse files Browse the repository at this point in the history
  • Loading branch information
graywolf336 authored and geekgonecrazy committed Jun 9, 2017
1 parent 6a0a558 commit 5c93bd3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if (!RocketChat.models.OAuthApps.findOne('zapier')) {
active: true,
clientId: 'zapier',
clientSecret: 'RTK6TlndaCIolhQhZ7_KHIGOKj41RnlaOq_o-7JKwLr',
redirectUri: 'https://zapier.com/dashboard/auth/oauth/return/App32270API/',
redirectUri: 'https://zapier.com/dashboard/auth/oauth/return/RocketChatDevAPI/',
_createdAt: new Date,
_createdBy: {
_id: 'system',
Expand Down
10 changes: 10 additions & 0 deletions server/startup/migrations/v098.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
RocketChat.Migrations.add({
version: 98,
up() {
RocketChat.models.OAuthApps.update({ _id: 'zapier' }, {
$set: {
redirectUri: 'https://zapier.com/dashboard/auth/oauth/return/RocketChatDevAPI/'
}
});
}
});

0 comments on commit 5c93bd3

Please sign in to comment.