This commit is contained in:
@ -255,11 +255,15 @@ function qdb_analytics_set_followup_note(PDO $pdo, array $tokenRec, string $clie
|
||||
|
||||
$pdo->prepare(
|
||||
'INSERT INTO client_followup_note (clientCode, note, updatedByUserID, updatedAt)
|
||||
VALUES (:cc, :n, :uid, :ts)
|
||||
ON CONFLICT(clientCode) DO UPDATE SET
|
||||
note = excluded.note,
|
||||
updatedByUserID = excluded.updatedByUserID,
|
||||
updatedAt = excluded.updatedAt'
|
||||
VALUES (:cc, :n, :uid, :ts) '
|
||||
. qdb_upsert_update(
|
||||
['clientCode'],
|
||||
[
|
||||
'note' => 'excluded.note',
|
||||
'updatedByUserID' => 'excluded.updatedByUserID',
|
||||
'updatedAt' => 'excluded.updatedAt',
|
||||
]
|
||||
)
|
||||
)->execute([
|
||||
':cc' => $clientCode,
|
||||
':n' => $note,
|
||||
|
||||
Reference in New Issue
Block a user