Skip to content

Commit

Permalink
permission.get: default search with deleted=0
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Mar 1, 2024
1 parent a3734f9 commit 3bccada
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule ".release"]
path = .release
url = [email protected]:msimerson/.release.git
1 change: 1 addition & 0 deletions .release
Submodule .release added at 8959a9
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# CHANGES

## Unreleased



[3.0.0-alpha.3]: https://github.com/NicTool/api/releases/tag/3.0.0-alpha.3
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ or

`npm run develop (development)`

will start up the HTTP service on the port specified in `conf.d/http.yml`. The default URL for the service is [http://localhost:3000](http://localhost:3000) and the API methods have documentation at [http://localhost:3000/documentation](http://localhost:3000/documentation).
will start up the HTTP service on the port specified in `conf.d/http.yml`. The default URL for the service is [http://localhost:3000](http://localhost:3000) and the API methods have documentation at [http://localhost:3000/documentation#/](http://localhost:3000/documentation#/).


## Using the API service
Expand Down
1 change: 1 addition & 0 deletions lib/permission.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Permission {
, p.deleted
FROM nt_perm p WHERE`
// Mysql.debug(1)
if (args.deleted === undefined) args.deleted = false
const rows = await Mysql.select(query, mapToDbColumn(args, permDbMap))
if (rows.length === 0) return
if (rows.length > 1) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nictool/api",
"version": "3.0.0-alpha.2",
"version": "3.0.0-alpha.3",
"description": "NicTool API",
"main": "index.js",
"type": "module",
Expand Down

0 comments on commit 3bccada

Please sign in to comment.