Skip to content

Commit 4b34a22

Browse files
authored
timestamp (#54)
1 parent 7ef27f0 commit 4b34a22

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/countly-bulk.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,10 @@ function CountlyBulk(conf) {
143143
if (!query.app_key) {
144144
query.app_key = conf.app_key;
145145
}
146-
147-
if ((`${query.timestamp}`).length !== 13 && (`${query.timestamp}`).length !== 10) {
148-
cc.log(cc.logLevelEnums.ERROR, "add_request, incorrect timestamp format", query);
146+
if (query.timestamp) {
147+
if ((`${query.timestamp}`).length !== 13 && (`${query.timestamp}`).length !== 10) {
148+
cc.log(cc.logLevelEnums.WARNING, "add_request, incorrect timestamp format, must be in milliseconds or seconds", query);
149+
}
149150
}
150151
query.sdk_name = SDK_NAME;
151152
query.sdk_version = SDK_VERSION;

0 commit comments

Comments
 (0)