Skip to content

Commit

Permalink
fix directory error
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Aug 29, 2016
1 parent c353ed7 commit dec88cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cli/helpers/abe-sql.js
Expand Up @@ -270,6 +270,9 @@ export default class Sql {
*/
static getFromDirectory(statement, tplPath){
var path = ''
if(typeof tplPath === 'undefined' || tplPath === null || tplPath === ''){
tplPath = '/'
}

if(statement === '' || statement === '*' || statement === '/') {
path = fileUtils.concatPath(config.root, config.data.url)
Expand Down Expand Up @@ -454,7 +457,6 @@ export default class Sql {
if(typeof wheres !== 'undefined' && wheres !== null) {
let meta = config.meta.name
if(typeof json[meta] !== 'undefined' && json[meta] !== null) {
var template = FileParser.getTemplate(json[meta].template)
Array.prototype.forEach.call(wheres, (where) => {
var value
var compare
Expand Down

0 comments on commit dec88cc

Please sign in to comment.