Skip to content

Commit 3f4fc87

Browse files
Small changes to DB to fix issues with name errors
1 parent ba87b1c commit 3f4fc87

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aeolus",
3-
"version": "1.1.30",
3+
"version": "1.1.32",
44
"description": "AtomicLlama's fast and problem free framework for fast NodeJS Servers.",
55
"main": "index.js",
66
"scripts": {

util/DB.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ DB.prototype.edit = function (table, query, map, success, error) {
5353
}
5454
db.collection(table).save(map(item));
5555
db.close();
56-
callback(map(item));
56+
success(map(item));
5757
});
5858
}, error);
5959
};

util/getMethods.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ function resourcesForDir(dir,pathToMethods) {
1414
require.cache[filename] = undefined;
1515
}
1616
var method = require(filename);
17-
var name = file.substring(0,file.length-3).replace(".","/");
17+
var name = file.substring(0,file.length-3);
18+
while (name.indexOf('.') >= 0) {
19+
name = name.replace(".","/");
20+
}
21+
console.log(name);
1822
method.name = name;
1923
return method;
2024
});

0 commit comments

Comments
 (0)