Advertisement
Guest User

Untitled

a guest
Dec 18th, 2013
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var async = require('async');
  2. var express = require('express');
  3. var Resource = require('express-resource');
  4.  
  5. var app = module.exports = express();
  6.  
  7. var path = require('path');
  8.  
  9. var A_Model = require('./models/a_model');
  10.  
  11. app.initialize = function (error, callback_init) {
  12.         console.log('is executed correctly.');
  13.  
  14.     A_Model.findOne({
  15.         name  : 'status'
  16.     }, function (error, doc) {
  17.         console.log('NEVER gets executed');
  18.  
  19.         if (error) {
  20.             callback_init(error);
  21.         }
  22.         else {
  23.             callback_init(null);
  24.         }
  25.     });
  26. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement