From d45ad29220d176ca8df1d6751f0c83daf6c7bc11 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Tue, 15 Mar 2016 17:03:04 +0100 Subject: [PATCH] fixes regression in my: refactor(Storage) PR. StorageSql engine's get() method must not return the item but the value of the item. --- ionic/platform/storage/sql.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ionic/platform/storage/sql.ts b/ionic/platform/storage/sql.ts index d8ef3577ee..8cb8669fb0 100644 --- a/ionic/platform/storage/sql.ts +++ b/ionic/platform/storage/sql.ts @@ -120,7 +120,7 @@ export class SqlStorage extends StorageEngine { get(key: string): Promise { 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; } }); }