if (params.unitName) {
      const unit = await this.unitModel
        .findOne({ name: params.unitName }, '_id')
        .lean();
      if (unit) {