fix: correct timestamp/boolean types for PostgreSQL schema (Date not int, bool not 0/1)
This commit is contained in:
parent
e00bd4d804
commit
69634909d1
9 changed files with 75 additions and 131 deletions
|
|
@ -19,7 +19,7 @@ async function main() {
|
|||
} else {
|
||||
console.log(`Found ${allCharts.length} chart(s):\n`);
|
||||
for (const chart of allCharts) {
|
||||
const date = new Date(chart.created_at * 1000).toISOString();
|
||||
const date = chart.created_at.toISOString();
|
||||
console.log(` ID: ${chart.id}`);
|
||||
console.log(` Name: ${chart.name}`);
|
||||
console.log(` Created: ${date}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue