Skip to content

Commit

Permalink
Use the correct column name here.
Browse files Browse the repository at this point in the history
  • Loading branch information
samskivert committed Aug 31, 2024
1 parent f726713 commit 84ff4a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2173,9 +2173,10 @@ function initializePolisHelpers() {

case "comments.csv":
const rows = await loadCommentSummary(zid) as object[] | undefined;
console.log(rows)
if (rows) res.send(formatCSV({
"timestamp": (row) => String(Math.floor(row.timestamp/1000)),
"datetime": (row) => formatDatetime(row.timestamp),
"timestamp": (row) => String(Math.floor(row.created/1000)),
"datetime": (row) => formatDatetime(row.created),
"comment-id": (row) => String(row.tid),
"author-id": (row) => String(row.pid),
agrees: (row) => String(row.agrees),
Expand Down

0 comments on commit 84ff4a4

Please sign in to comment.