- Timestamp:
- 12/16/12 20:07:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/server/couchdb-admin/config/check.js
r415 r420 1 1 define([ 2 2 'dojo/_base/array', 3 'dojo/_base/lang', 3 4 'dojox/json/schema', 4 ' ./util/async',5 'qed/lib/async', 5 6 './util/db', 6 ' rft/schema'7 ],function(array, jsonSchema,async,db,schema){7 'qed/model/schema' 8 ],function(array,lang,jsonSchema,async,db,schema){ 8 9 9 10 async.seq([ … … 23 24 function(docs){ 24 25 console.log("Validating documents."); 25 return async. forEach(docs,function(doc){26 return async.map(docs,function(doc){ 26 27 var id = doc.id; 27 28 return db.req('get','qed/'+id) … … 31 32 }); 32 33 }); 33 },function(){34 console.log("Done!");35 34 } 36 ]); 35 ]).then(function() { 36 console.log("Done!"); 37 },function(err){ 38 console.log("Fail!",err.stack); 39 }); 37 40 38 41
Note: See TracChangeset
for help on using the changeset viewer.