mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
fix(sqlstorage): empty array not ..params. Fixes #770
This commit is contained in:
@ -96,7 +96,7 @@ export class SqlStorage extends StorageEngine {
|
||||
* @param {array} params the additional params to use for query placeholders
|
||||
* @return {Promise} that resolves or rejects with an object of the form { tx: Transaction, res: Result (or err)}
|
||||
*/
|
||||
query(query, ...params) {
|
||||
query(query, params=[]) {
|
||||
return new Promise((resolve, reject) => {
|
||||
try {
|
||||
this._db.transaction((tx) => {
|
||||
|
Reference in New Issue
Block a user