mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
Fix Intercom ID, fix withList context issue
This commit is contained in:
parent
ac838a65e4
commit
908a570664
2 changed files with 3 additions and 2 deletions
|
@ -28,10 +28,10 @@ if (!token) {
|
|||
function intercomNewUser(user) {
|
||||
intercomClient.users.create({
|
||||
email: user.email,
|
||||
user_id: user._id,
|
||||
custom_attributes: {
|
||||
name: user.displayName,
|
||||
profileUrl: Users.getProfileUrl(user, true),
|
||||
_id: user._id,
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -261,7 +261,8 @@ export const createCollection = options => {
|
|||
parameters = runCallbacks(`${collectionName.toLowerCase()}.parameters.client`, parameters, _.clone(terms), apolloClient);
|
||||
}
|
||||
|
||||
if (Meteor.isServer) {
|
||||
// note: check that context exists to avoid calling this from withList during SSR
|
||||
if (Meteor.isServer && context) {
|
||||
parameters = runCallbacks(`${collectionName.toLowerCase()}.parameters.server`, parameters, _.clone(terms), context);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue