Make a copy of every You & Me connection
Checks if you don't have a connection inside your own repo and create a copy of a new connection you received
at.youandme.connection- Lexicon
at.youandme.connection- Operations
- Record created
Steps (4)
- Continue only if
event.commit.record.subjectequals{{self}}- Someone connected with you
connected- Search if you already have a connection with that person inside your repo- Collection
at.youandme.connection- In repo
{{self}}- Where
subjectequals{{event.did}}
- If
connected.foundequalsfalse- Couldn't find a connection
Then
Create a recordAction 1mirrorConnection
- Target Collection
at.youandme.connection- Record Template
{ "subject": "{{event.did}}", "createdAt": "{{now}}" }