Fixes: Return created_on and last_updated as int; import Word class ref.

This commit is contained in:
Robbie Antenesse 2018-02-21 23:13:51 -07:00
parent 0dc64b5f10
commit f59f72eaac
2 changed files with 4 additions and 2 deletions

View File

@ -175,8 +175,8 @@ WHERE dictionary=$dictionary";
'partOfSpeech' => $row['part_of_speech'], 'partOfSpeech' => $row['part_of_speech'],
'definition' => $row['definition'], 'definition' => $row['definition'],
'details' => $row['details'], 'details' => $row['details'],
'lastUpdated' => is_null($row['last_updated']) ? null : $row['last_updated'], 'lastUpdated' => is_null($row['last_updated']) ? null : intval($row['last_updated']),
'createdOn' => $row['created_on'], 'createdOn' => intval($row['created_on']),
); );
}, $results); }, $results);
} }

View File

@ -2,6 +2,8 @@ import store from 'store';
import { timestampInSeconds, request } from "../Helpers"; import { timestampInSeconds, request } from "../Helpers";
import { Word } from './Word';
export class Updater { export class Updater {
constructor (appWithDictionaryState, dictionary) { constructor (appWithDictionaryState, dictionary) {
this.app = appWithDictionaryState; this.app = appWithDictionaryState;