message: Fixed missing await by unit types
diff: @@ -176,12 +176,12 @@ export class DownloadController {
  const localUnit = await Unit.findOne({_id: unit.unitId});
  if (localUnit.__t === 'free-text') {
  const freeTextUnit = <IFreeTextUnit><any>localUnit;
  - archive.append(FreeTextUnit.schema.statics.toFile(freeTextUnit), {
  + archive.append(await FreeTextUnit.schema.statics.toFile(freeTextUnit), {
  name: lecCounter + '_' + lcName + '/' + unitCounter + '_' + this.replaceCharInFilename(freeTextUnit.name) + '.md'
  });
  } else if (localUnit.__t === 'code-kata') {
  const codeKataUnit = <ICodeKataUnit><any>localUnit;
  - archive.append(CodeKataUnit.schema.statics.toFile(codeKataUnit),
  + archive.append(await CodeKataUnit.schema.statics.toFile(codeKataUnit),
  {name: lecCounter + '_' + lcName + '/' + unitCounter + '_' + this.replaceCharInFilename(codeKataUnit.name) + '.txt'});
  } else if (localUnit.__t === 'file') {
  const fileUnit = <IFileUnit><any>localUnit;
  