Fixes: Return created_on and last_updated as int; import Word class ref.
This commit is contained in:
parent
0dc64b5f10
commit
f59f72eaac
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue