Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion system/services/email/EmailLoggingService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ component {
, string ipAddress = cgi.remote_addr
, date eventDate = Now()
) {
var data = { opened = true, opened_count=1 };
var data = { opened = true, open_count=1 };

if ( !arguments.softMark ) {
data.opened_date = _getNow();
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/api/email/EmailLoggingServiceTest.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ component extends="resources.HelperObjects.PresideBddTestCase" {
expect( mockLogDao.$callLog().updateData[ 1 ] ).toBe( {
filter = "id = :id and ( opened is null or opened = :opened )"
, filterParams = { id=logId, opened=false }
, data = { opened=true, opened_date=nowish, opened_count=1 }
, data = { opened=true, opened_date=nowish, open_count=1 }
} );
expect( service.$callLog().markAsDelivered.len() ).toBe( 1 );
expect( service.$callLog().markAsDelivered[1] ).toBe( [ logId, true ] );
Expand All @@ -356,7 +356,7 @@ component extends="resources.HelperObjects.PresideBddTestCase" {
expect( mockLogDao.$callLog().updateData[ 1 ] ).toBe( {
filter = "id = :id and ( opened is null or opened = :opened )"
, filterParams = { id=logId, opened=false }
, data = { opened=true, opened_count=1 }
, data = { opened=true, open_count=1 }
} );
expect( service.$callLog().markAsDelivered.len() ).toBe( 1 );
expect( service.$callLog().markAsDelivered[1] ).toBe( [ logId, true ] );
Expand Down
Loading