fix: replace spaces in upload filenames

This commit is contained in:
Nick
2019-06-02 22:18:11 -04:00
parent b38655b91c
commit a50bb2f281
3 changed files with 6 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ module.exports = {
try {
const folderSlug = sanitize(args.slug).toLowerCase()
const parentFolderId = args.parentFolderId === 0 ? null : args.parentFolderId
const result = await WIKI.models.assetFolders.query().where({
const result = await WIKI.models.assetFolders.query().where({
parentId: parentFolderId,
slug: folderSlug
}).first()