Skip to content

Commit

Permalink
Improved DATA.query() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Jul 9, 2024
1 parent c21afab commit 1339293
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- added `$.promisify(fn, [a], [b])` method
- added `FILESTORAGE().copy(id, path, [callback(err, meta)])`
- fixed formatting `0` number in the `Tangular.format` helper
- improved `DATA.query()` method

========================
0.0.96
Expand Down
3 changes: 2 additions & 1 deletion querybuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ CTP.remove = CTP.rem = function(table) {

CTP.query = function(table, query, params) {

if (query == null) {
if (query == null || typeof(query) === 'object') {
params = query;
query = table;
table = 'default/';
} else
Expand Down

0 comments on commit 1339293

Please sign in to comment.