Commit f1ba9741 authored by mercury233's avatar mercury233

test

parent 8c5a41cb
......@@ -1265,8 +1265,8 @@ if settings.modules.mycard_auth and process.env.MYCARD_AUTH_DATABASE
client.query 'SELECT username, id from users', (error, result)->
throw error if error
done()
for row in result.rows
users_cache[row.username] = row.id
#for row in result.rows
# users_cache[row.username] = row.id
console.log("users loaded", _.keys(users_cache).length)
return
return
......
......@@ -1535,16 +1535,10 @@
throw error;
}
client.query('SELECT username, id from users', function(error, result) {
var k, len, ref, row;
if (error) {
throw error;
}
done();
ref = result.rows;
for (k = 0, len = ref.length; k < len; k++) {
row = ref[k];
users_cache[row.username] = row.id;
}
console.log("users loaded", _.keys(users_cache).length);
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment