diff --git a/public/api/Dictionary.php b/public/api/Dictionary.php index 834520b..eef5852 100644 --- a/public/api/Dictionary.php +++ b/public/api/Dictionary.php @@ -175,8 +175,8 @@ WHERE dictionary=$dictionary"; 'partOfSpeech' => $row['part_of_speech'], 'definition' => $row['definition'], 'details' => $row['details'], - 'lastUpdated' => is_null($row['last_updated']) ? null : $row['last_updated'], - 'createdOn' => $row['created_on'], + 'lastUpdated' => is_null($row['last_updated']) ? null : intval($row['last_updated']), + 'createdOn' => intval($row['created_on']), ); }, $results); } diff --git a/src/managers/Updater.js b/src/managers/Updater.js index 3cdc4db..30f71dd 100644 --- a/src/managers/Updater.js +++ b/src/managers/Updater.js @@ -2,6 +2,8 @@ import store from 'store'; import { timestampInSeconds, request } from "../Helpers"; +import { Word } from './Word'; + export class Updater { constructor (appWithDictionaryState, dictionary) { this.app = appWithDictionaryState;