Recalculating Cache after new teamSetup
This commit is contained in:
1 parent
920703a0e2
commit
8577d51db3
2 files changed
+28
-17
No files matched your search
+20
-17
@@ -537,23 +537,26 @@
|
||||
};
|
||||
|
||||
usersModuleAPI.query(`
|
||||
mutation($authId: String, $sessionToken: String){
|
||||
updateSessionToken(authId: $authId, sessionToken: $sessionToken){
|
||||
id
|
||||
alias
|
||||
}
|
||||
}
|
||||
`, variables, function (req, res) {
|
||||
if (res.status === 401) {
|
||||
console.log('Error trying to save the session token at the Users Module');
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.errors) {
|
||||
console.log('Error trying to save the session token at the Users Module');
|
||||
}
|
||||
}).catch(error => {
|
||||
console.log('Error trying to save the session token at the Users Module');
|
||||
});
|
||||
mutation($authId: String, $sessionToken: String){
|
||||
updateSessionToken(authId: $authId, sessionToken: $sessionToken){
|
||||
id
|
||||
alias
|
||||
}
|
||||
}
|
||||
`, variables, function (req, res) {
|
||||
if (res.status === 401) {
|
||||
console.log('[ERROR] TeamSetup -> newTeam -> Error trying to save the session token at the Users Module');
|
||||
console.log('[ERROR] TeamSetup -> newTeam -> res.status = 401');
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.errors) {
|
||||
console.log('[ERROR] TeamSetup -> newTeam -> Error trying to save the session token at the Users Module');
|
||||
console.log('[ERROR] TeamSetup -> newTeam -> res.errors = ' + res.errors);
|
||||
}
|
||||
}).catch(error => {
|
||||
console.log('Error trying to save the session token at the Users Module');
|
||||
console.log('[ERROR] TeamSetup -> newTeam -> errors = ' + errors);
|
||||
});
|
||||
|
||||
} catch (err) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user