mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-08-04 21:39:04 +00:00
change: discard decrpecated GLOBAL
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user