Skip to content

Commit

Permalink
user human readable string instead
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed Apr 18, 2019
1 parent 9a3773b commit 6437601
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/researchHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Handlers {
const obj = JSON.parse(rst.body)
obj.gtin = gtin
obj.gtin_path = gtinPath(gtin)
obj._ts = (new Date()).getTime()
obj._ts = (new Date()).toISOString()
let image = imageUrl

if (!obj.gtin14) {
Expand Down Expand Up @@ -67,7 +67,7 @@ class Handlers {
product = obj.product
product.gtin = gtin
product.gtin_path = gtinPath(gtin)
product._ts = (new Date()).getTime()
product._ts = (new Date()).toISOString()

if (product.attributes.product !== 'Unknown') {
debug(`found ${gtin}`)
Expand Down Expand Up @@ -144,7 +144,7 @@ class Handlers {
product.gtin = gtin
product.image = image
product.gtin_path = gtinPath(gtin)
product._ts = (new Date()).getTime()
product._ts = (new Date()).toISOString()

if (storeData) {
// stash the data and image
Expand Down Expand Up @@ -184,7 +184,7 @@ class Handlers {
obj.gtin = gtin
obj.media = idata
obj.gtin_path = gtinPath(gtin)
obj._ts = (new Date()).getTime()
obj._ts = (new Date()).toISOString()
let image = imageUrl

if (image === null && idata.kwikeeApiV3 && idata.kwikeeApiV3.gtin)
Expand Down

0 comments on commit 6437601

Please sign in to comment.