mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Merge pull request #5851 from manucorporat/refactor-storage
fix(Storage): fix regression within get() method
This commit is contained in:
@@ -120,7 +120,7 @@ export class SqlStorage extends StorageEngine {
|
||||
get(key: string): Promise<any> {
|
||||
return this.query('select key, value from kv where key = ? limit 1', [key]).then(data => {
|
||||
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