From 215bfa1fa649adc74a2f96323617b149ed15def0 Mon Sep 17 00:00:00 2001 From: abbr Date: Sun, 30 Mar 2014 15:06:56 -0700 Subject: [PATCH] updated the use of deasync --- lib/daos/site.js | 2 +- lib/daos/user.js | 2 +- package.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/daos/site.js b/lib/daos/site.js index cb9724d..feb08be 100644 --- a/lib/daos/site.js +++ b/lib/daos/site.js @@ -31,7 +31,7 @@ try { } while(sites === undefined){ - require('deasync').sleep(100); + require('deasync').runLoopOnce(); } exports.getSitesObj = function() { diff --git a/lib/daos/user.js b/lib/daos/user.js index bfbf26c..15697c9 100644 --- a/lib/daos/user.js +++ b/lib/daos/user.js @@ -38,7 +38,7 @@ try { } while(users === undefined){ - require('deasync').sleep(100); + require('deasync').runLoopOnce(); } // used internally; not accessible via req exports.getUsers = function() { diff --git a/package.json b/package.json index c053316..7bd2e4d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "form-mailer-service", "description": "FormMailer is a service application emailing forms posted by users from a registered web site", - "version": "0.1.1", + "version": "0.1.2", "license": "MIT", "author": { "name": "Fred" @@ -18,7 +18,7 @@ "mongoose": "~3.8.0", "password-hash": "~1.2.1", "underscore": "~1.5.2", - "deasync": "~0.0.3" + "deasync": "~0.0.6" }, "devDependencies": { "grunt": "~0.4.1",