feat(pipedrive): Use also company domain for screen name
This commit is contained in:
@@ -46,9 +46,13 @@ const verifyCredentials = async ($: IGlobalVariable) => {
|
|||||||
|
|
||||||
const user = await getCurrentUser($);
|
const user = await getCurrentUser($);
|
||||||
|
|
||||||
|
const screenName = [user.name, user.company_domain]
|
||||||
|
.filter(Boolean)
|
||||||
|
.join(' @ ');
|
||||||
|
|
||||||
await $.auth.set({
|
await $.auth.set({
|
||||||
userId: user.id,
|
userId: user.id,
|
||||||
screenName: user.name,
|
screenName,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user