Follow up - 8790e389be
- Fixes issue #865 - Freshdesk import - Import last login date as such and not as image source.
This commit is contained in:
parent
85856cbd40
commit
77619212d6
2 changed files with 15 additions and 14 deletions
|
@ -21,7 +21,7 @@ class Sequencer
|
||||||
active: contact['active'],
|
active: contact['active'],
|
||||||
group_ids: group_ids,
|
group_ids: group_ids,
|
||||||
password: password,
|
password: password,
|
||||||
image_source: contact['last_login_at'],
|
last_login: contact['last_login_at'],
|
||||||
role_ids: ::Role.where(name: role_names).pluck(:id),
|
role_ids: ::Role.where(name: role_names).pluck(:id),
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
@ -65,6 +65,7 @@ RSpec.describe ::Sequencer::Sequence::Import::Freshdesk::Agent, sequencer: :sequ
|
||||||
login: 'freshdesk@example.com',
|
login: 'freshdesk@example.com',
|
||||||
email: 'freshdesk@example.com',
|
email: 'freshdesk@example.com',
|
||||||
active: true,
|
active: true,
|
||||||
|
last_login: DateTime.parse('2021-05-10T07:52:58Z'),
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue