feat(pipedrive): Use also company domain for screen name

This commit is contained in:
Faruk AYDIN
2023-09-28 14:41:24 +02:00
parent 6378e62645
commit 398938f27e

View File

@@ -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,
}); });
}; };