Skip to content

Commit

Permalink
Use correct spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
rixx committed Nov 15, 2024
1 parent 983f5d5 commit 7bfbc0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Information is sent every eight hours or on manual sync, and is mapped as follow
- Status__c is set to the submission’s status.
- Abstract__c is set to the submission’s abstract plus the submission’s description, separated by two newlines and then stripped of whitespace.
- Pretalx_Record__c is set to the submission’s public URL.
- The mapping between Contacts and Sessions is synced to the custom Contact_Session object:
- The mapping between Contacts and Sessions is synced to the custom Contact_Session__c object:
- Contact__c is set to the Salesforce Contact.
- Session__c is set to the Salesforce Session.

Expand Down
2 changes: 1 addition & 1 deletion pretalx_salesforce/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def sync_relations(self, sf=None, force=False):
# This is a known relation, and it holds no data of its own, so we don’t
# need to update it
continue
result = sf.Contact_Session.create(relation)
result = sf.Contact_Session__c.create(relation)
speaker_id = relation["Contact__c"]["pretalx_LegacyID__c"]
self.synced_data["relation_mapping"][speaker_id] = result["id"]

Expand Down
4 changes: 2 additions & 2 deletions pretalx_salesforce/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
def sync_event_with_salesforce(event):
"""
Syncs an event with Salesforce. The sync maps objects as follows, and requires
the custom Contact_Session and Session objects to be created in Salesforce:
the custom Contact_Session__c and Session objects to be created in Salesforce:
- User/SpeakerProfile -> Contact, setting
- Contact.pretalx_LegacyID__c = User.code
Expand All @@ -29,7 +29,7 @@ def sync_event_with_salesforce(event):
- Contact.Biography__c = User.event_profile.biography
- Contact.Profile_Picture__c = User.avatar.url
- [nothing] -> Contact_Session
- [nothing] -> Contact_Session__c
- ID
- Session__c = Session
- Contact__c = Contact
Expand Down

0 comments on commit 7bfbc0e

Please sign in to comment.