Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var async = require('async');
- var express = require('express');
- var Resource = require('express-resource');
- var app = module.exports = express();
- var path = require('path');
- var A_Model = require('./models/a_model');
- app.initialize = function (error, callback_init) {
- console.log('is executed correctly.');
- A_Model.findOne({
- name : 'status'
- }, function (error, doc) {
- console.log('NEVER gets executed');
- if (error) {
- callback_init(error);
- }
- else {
- callback_init(null);
- }
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement