Refactoring the code for pub sub (#155)

- We were using the attribute name 'channel' to store pubsub tokens, which was confusing.
- switched to faker from ffaker
- spec for contact.rb
This commit is contained in:
Sojan Jose
2019-10-17 03:18:07 +05:30
committed by GitHub
parent ad5fb525f5
commit 3988777718
14 changed files with 89 additions and 52 deletions

View File

@@ -108,9 +108,9 @@ export default {
}
return false;
},
getChannel() {
getPubSubToken() {
if (this.isLoggedIn()) {
return Cookies.getJSON('user').channel;
return Cookies.getJSON('user').pubsub_token;
}
return null;
},