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'],
|
||||
'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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue