Merge pull request #5851 from manucorporat/refactor-storage

fix(Storage): fix regression within get() method
This commit is contained in:
Adam Bradley
2016-03-15 11:08:20 -05:00

View File

@@ -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;
}
});
}