change: discard decrpecated GLOBAL

This commit is contained in:
Ya Zhuang
2016-05-31 14:13:24 +08:00
parent 207a20adf2
commit 4144beecc1
5 changed files with 32 additions and 22 deletions

View File

@@ -124,7 +124,7 @@ function Recorder(option){
mime : "",
content : ""
};
GLOBAL.recorder.getSingleRecord(id,function(err,doc){
global.recorder.getSingleRecord(id,function(err,doc){
//check whether this record exists
if(!doc || !doc[0]){
cb(new Error("failed to find record for this id"));
@@ -230,4 +230,4 @@ function normalizeInfo(id,info){
return singleRecord;
}
module.exports = Recorder;
module.exports = Recorder;