This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* FILE: api/hooks/reindex-db.js | |
* | |
* Created by mcrowe on 1/28/15. | |
* | |
* Insures indices recreated if needed, and allows complex indicies to be specified in the model as well. Example: | |
* | |
module.exports = { | |
schema : true, | |
version : "1.3", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var forms = require('forms'); | |
var fields = forms. fields, | |
validators = forms.validators, | |
widgets = forms.widgets; | |
var _ = require('lodash'); | |
var fs = require('fs'); | |
function repl(str,arr) { | |
_.forOwn(arr,function(value,key) { | |
var search = '{'+key+'}'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//** In web app **// | |
var current = constants.STATE_WAITING; |
NewerOlder