Skip to content

Commit

Permalink
hotfix for v0.4 deprication
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjennings committed Feb 23, 2016
1 parent 7572b6f commit 7dc493c
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions pubnub-c3.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,24 +356,17 @@ eon.c = {

clog('PubNub:', 'Transforming Message using options.transform');

// v0.4 migration notice to be deprecated
if(message.columns) {
elog('Error! The data schema has been updated. Please publish data using our new JSON schema. See: https://github.com/pubnub/eon-chart');
} else {

var message = options.transform(message);
var message = options.transform(message);

message.eon = appendDate(message.eon, env[1]);
message.eon = appendDate(message.eon, env[1]);

clog('PubNub:', 'Message Result', message);
clog('PubNub:', 'Message Result', message);

stale = true;
storeData(message.eon, false);
stale = true;
storeData(message.eon, false);

clog('PubNub:', 'Calling options.message');
options.message(message, env, channel);

}
clog('PubNub:', 'Calling options.message');
options.message(message, env, channel);

});

Expand Down

0 comments on commit 7dc493c

Please sign in to comment.