fix(all): Templates OK.
This commit is contained in:
parent
80e766430e
commit
8327b710ba
2 changed files with 3 additions and 5 deletions
|
@ -1195,13 +1195,13 @@ export class GBMinService {
|
||||||
}
|
}
|
||||||
} else if (context.activity.type === 'message') {
|
} else if (context.activity.type === 'message') {
|
||||||
|
|
||||||
let pid = WhatsappDirectLine.pidByNumber[user.userSystemId];
|
let pid = WhatsappDirectLine.pidByNumber[context.activity.from.id];
|
||||||
|
|
||||||
// Required for F0 handling of persisted conversations.
|
// Required for F0 handling of persisted conversations.
|
||||||
|
|
||||||
GBLogEx.info(
|
GBLogEx.info(
|
||||||
min,
|
min,
|
||||||
`Human: pid:${pid} ${context.activity.text} (type: ${context.activity.type}, name: ${context.activity.name}, channelId: ${context.activity.channelId})`
|
`Human: pid:${pid} ${context.activity.from.id} ${GBUtil.toYAML(WhatsappDirectLine.pidByNumber)} ${context.activity.text} (type: ${context.activity.type}, name: ${context.activity.name}, channelId: ${context.activity.channelId})`
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -536,9 +536,7 @@ export class WhatsappDirectLine extends GBService {
|
||||||
let response;
|
let response;
|
||||||
if (GBConfigService.get('STORAGE_NAME')) {
|
if (GBConfigService.get('STORAGE_NAME')) {
|
||||||
response = await client.apis.Conversations.Conversations_StartConversation(
|
response = await client.apis.Conversations.Conversations_StartConversation(
|
||||||
{ userSystemId: user.userSystemId,
|
|
||||||
userName: user.userName,
|
|
||||||
pid: pid}
|
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
response = await client.apis.Conversations.Conversations_StartConversation(
|
response = await client.apis.Conversations.Conversations_StartConversation(
|
||||||
|
|
Loading…
Add table
Reference in a new issue