From da4d4ab5ab43d477ff882f5c631435316dce75ac Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Sat, 11 Aug 2018 23:59:40 +0200 Subject: [PATCH] fix: date is string in JSON --- src/periodical.js | 2 +- src/spending.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/periodical.js b/src/periodical.js index 8f94373..5d45797 100644 --- a/src/periodical.js +++ b/src/periodical.js @@ -122,7 +122,7 @@ export const PeriodicalJSONType = struct({ title: NonEmptyStringType, saving: BooleanType, amount: IntegerType, - startsAt: MaybeDateType, + startsAt: MaybeStringType, estimate: BooleanType, enabledIn01: BooleanType, enabledIn02: BooleanType, diff --git a/src/spending.js b/src/spending.js index 117a542..42b4f3a 100644 --- a/src/spending.js +++ b/src/spending.js @@ -72,7 +72,7 @@ export const SpendingJSONType = struct({ category: NonEmptyStringType, title: NonEmptyStringType, booked: BooleanType, - bookedAt: MaybeDateType, + bookedAt: MaybeStringType, saving: BooleanType, amount: IntegerType }, 'SpendingJSONType')