mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
fixes regression in my: refactor(Storage) PR.
StorageSql engine's get() method must not return the item but the value of the item.
This commit is contained in:
@ -120,7 +120,7 @@ export class SqlStorage extends StorageEngine {
|
|||||||
get(key: string): Promise<any> {
|
get(key: string): Promise<any> {
|
||||||
return this.query('select key, value from kv where key = ? limit 1', [key]).then(data => {
|
return this.query('select key, value from kv where key = ? limit 1', [key]).then(data => {
|
||||||
if (data.res.rows.length > 0) {
|
if (data.res.rows.length > 0) {
|
||||||
return data.res.rows.item(0);
|
return data.res.rows.item(0).value;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user