Skip to content

Commit 7b0836a

Browse files
committed
fix(chart): restore erroneously missing date field
ghostfolio/ghostfolio#4488 (comment)
1 parent 62d47d2 commit 7b0836a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/modules/chart.schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,10 @@
438438
"ChartResultArrayQuote": {
439439
"type": "object",
440440
"properties": {
441+
"date": {
442+
"type": "string",
443+
"format": "date-time"
444+
},
441445
"high": {
442446
"type": [
443447
"number",
@@ -476,6 +480,7 @@
476480
}
477481
},
478482
"required": [
483+
"date",
479484
"high",
480485
"low",
481486
"open",

src/modules/chart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface ChartResultArray {
2828

2929
export interface ChartResultArrayQuote {
3030
[key: string]: unknown;
31-
// date: Date;
31+
date: Date;
3232
high: number | null;
3333
low: number | null;
3434
open: number | null;

0 commit comments

Comments
 (0)