all repos — litestore @ f30c43a1f32519a845421c9ea4852ba0650518a7

A minimalist nosql document store.

removed unnecessary echo statements.
h3rald h3rald@h3rald.com
Fri, 06 Mar 2020 16:56:18 +0100
commit

f30c43a1f32519a845421c9ea4852ba0650518a7

parent

2682742d0b0af0a03c70bb2ac14b6c3fa11e52c5

M src/litestorepkg/lib/api_v4.nimsrc/litestorepkg/lib/api_v4.nim

@@ -477,7 +477,6 @@ if not folder.isFolder:

return resError(Http400, "Invalid folder specified when creating document: $1" % folder) try: var doc = LS.store.createDocument(folder, body, ct) - echo doc if doc != "": result.headers = ctJsonHeader() setOrigin(LS, req, result.headers)
M src/litestorepkg/lib/api_v5.nimsrc/litestorepkg/lib/api_v5.nim

@@ -823,7 +823,6 @@ if id != "":

if resource == "indexes": var field = "" try: - echo req.body field = parseJson(req.body.strip)["field"].getStr except: return resError(Http400, "Bad Request - Invalid JSON body - $1" % getCurrentExceptionMsg())
M src/litestorepkg/lib/core.nimsrc/litestorepkg/lib/core.nim

@@ -163,7 +163,6 @@ proc retrieveIndexes*(store: Datastore, options: QueryOptions = newQueryOptions()): JsonNode =

var query = prepareSelectIndexesQuery(options) var raw_indexes: seq[Row] if (options.like.len > 0): - echo options.like if (options.like[options.like.len-1] == '*' and options.like[0] != '*'): let str = "json_index_" & options.like.substr(0, options.like.len-2) raw_indexes = store.db.getAllRows(query.sql, str, str & "{")
M src/litestorepkg/lib/server.nimsrc/litestorepkg/lib/server.nim

@@ -95,7 +95,6 @@ var currentPaths = ""

for p in ancestors: currentPath &= "/" & p currentPaths = currentPath & "/*" - echo currentPaths if LS.config["resources"].hasKey(currentPaths) and LS.config["resources"][currentPaths].hasKey(meth) and LS.config["resources"][currentPaths][meth].hasKey("allowed"): let allowed = LS.config["resources"][currentPaths][meth]["allowed"] if (allowed == %false):