Browse Source

fix(migration): parsing and passing date

upstream-develop
poeti8 1 year ago
parent
commit
684d833a31
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      server/migration/04_links.ts

+ 3
- 1
server/migration/04_links.ts View File

@ -72,7 +72,9 @@ const postgres = knex({
stats.forEach(([b, o, country, referrer, date]) => {
if (b && o && country && referrer && date) {
const dateHour = startOfHour(date).toISOString();
const dateHour = startOfHour(
new Date(date)
).toISOString();
const browser = b.toLowerCase();
const os = o === "Mac Os X" ? "macos" : o.toLowerCase();
visits[dateHour] = {


Loading…
Cancel
Save