Added doc.
This commit is contained in:
parent
59b115669a
commit
8ebe752ee1
1 changed files with 22 additions and 0 deletions
|
@ -40,6 +40,14 @@ class Transaction::ClearbitEnrichment
|
||||||
Transaction::ClearbitEnrichment.sync_user(user)
|
Transaction::ClearbitEnrichment.sync_user(user)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
=begin
|
||||||
|
|
||||||
|
sync all users against clearbit
|
||||||
|
|
||||||
|
Transaction::ClearbitEnrichment.sync
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
def self.sync
|
def self.sync
|
||||||
users = User.of_role('Customer')
|
users = User.of_role('Customer')
|
||||||
users.each {|user|
|
users.each {|user|
|
||||||
|
@ -47,6 +55,20 @@ class Transaction::ClearbitEnrichment
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
=begin
|
||||||
|
|
||||||
|
sync one users against clearbit
|
||||||
|
|
||||||
|
Transaction::ClearbitEnrichment.sync_user(user)
|
||||||
|
|
||||||
|
users = [...]
|
||||||
|
|
||||||
|
users.each {|user|
|
||||||
|
Transaction::ClearbitEnrichment.sync_user(user)
|
||||||
|
}
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
def self.sync_user(user)
|
def self.sync_user(user)
|
||||||
UserInfo.current_user_id = 1
|
UserInfo.current_user_id = 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue