Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/AdFabConnect/abejs
Browse files Browse the repository at this point in the history
  • Loading branch information
wonknu committed Nov 10, 2016
2 parents 5e1db06 + a08d689 commit e72c9bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli/cms/data/metas.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
export function add(json, type, date = null) {
let meta = config.meta.name
var currentDate = (date != null && date !== '') ? date : new Date()
var abeUrl = (type === 'publish') ? json[meta].link : cmsData.fileAttr.add(json[meta].link, 'd' + cmsData.revision.removeStatusAndDateFromFileName(currentDate.toISOString())) + ''
var prefixStatus = type[0]
var abeUrl = (type === 'publish') ? json[meta].link : cmsData.fileAttr.add(json[meta].link, prefixStatus + cmsData.revision.removeStatusAndDateFromFileName(currentDate.toISOString())) + ''

if(json[meta].date == null) {
json[meta].date = currentDate
Expand Down

0 comments on commit e72c9bb

Please sign in to comment.