-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
31 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
{% liquid | ||
function object = 'commands/contacts/create/build', object: object | ||
function object = 'commands/contacts/create/check', object: object | ||
|
||
if object.valid | ||
function object = 'commands/contacts/create/execute', object: object | ||
function _ = 'modules/core/commands/events/publish', type: 'contact_created', object: object | ||
assign event_object = '{}' | parse_json | hash_merge: id: object.id | ||
hash_assign event_object["email"] = object.email | ||
log event_object, type: 'event object' | ||
function _ = 'modules/core/commands/events/publish', type: 'contact_created', object: event_object, delay: null, max_attempts: null | ||
endif | ||
|
||
return object | ||
%} | ||
%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"modules": { | ||
"core": "1.5.0" | ||
"core": "1.5.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"modules": { | ||
"core": "1.5.0" | ||
"core": "1.5.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
--- | ||
method: post | ||
--- | ||
{% function contact = 'commands/contacts/create', object: context.params.contact %} | ||
{% if contact.valid %} | ||
{% log contact, type: 'contact after valid' %} | ||
{% assign event_object = '{}' | parse_json | hash_merge: id: contact.id %} | ||
{% hash_assign event_object["email"] = contact.email %} | ||
{% log event_object, type: 'event object' %} | ||
{% function _ = 'modules/core/commands/events/publish', type: 'contact_created', object: event_object %} | ||
{% redirect_to '/contacts/thanks' %} | ||
{% else %} | ||
{% render 'contacts/form', contact: contact %} | ||
{% endif %} | ||
|
||
{% liquid | ||
function contact = 'commands/contacts/create', object: context.params.contact | ||
if contact.valid | ||
log contact, type: 'contact after valid' | ||
redirect_to '/contacts/thanks' | ||
else | ||
render 'contacts/form', contact: contact | ||
endif | ||
%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters