wiki/server/modules/storage/git/storage.js
/**
   * ASSET UPLOAD
   *
   * @param {Object} asset Asset to upload
   */
ASSET UPLOAD
@param {Object} asset Asset to upload
ASSET UPLOAD @param { Object } asset Asset to upload
async assetUploaded (asset) {
    WIKI.logger.info(`(STORAGE/GIT) Committing new file ${asset.path}...`)
    const filePath = path.join(this.repoPath, asset.path)
    await fs.outputFile(filePath, asset.data, 'utf8')
    await this.git.add(`./${asset.path}`)
    await this.git.commit(`docs: upload ${asset.path}`, asset.path, {
      '--author': `"${asset.authorName} <${asset.authorEmail}>"`
    })
  }
async assetUploaded ( asset ) { WIKI . logger . info ( ` ${ asset . path } ` ) const filePath = path . join ( this . repoPath , asset . path ) await fs . outputFile ( filePath , asset . data , 'utf8' ) await this . git . add ( ` ${ asset . path } ` ) await this . git . commit ( ` ${ asset . path } ` , asset . path , { '--author' : ` ${ asset . authorName } ${ asset . authorEmail } ` } ) }
ASSET UPLOAD
 @param {Object} asset Asset to upload
ASSET UPLOAD @param { Object } asset Asset to upload