Browse Source

Merge branch 'development' into integrate-content-wg

Mokhtar Naamani 5 years ago
parent
commit
bf379791b4
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/content_working_group/lib.rs

+ 4 - 1
src/content_working_group/lib.rs

@@ -89,6 +89,9 @@ pub type PrincipalId<T> = <T as versioned_store_permissions::Trait>::Credential;
 
 pub type CuratorApplicationIdToCuratorIdMap<T> = BTreeMap<CuratorApplicationId<T>, CuratorId<T>>;
 
+// Workaround for BTreeSet type
+pub type CuratorApplicationIdSet<T> = BTreeSet<CuratorApplicationId<T>>;
+
 /*
  * MOVE ALL OF THESE OUT TO COMMON LATER
  */
@@ -1459,7 +1462,7 @@ decl_module! {
         pub fn fill_curator_opening(
             origin,
             curator_opening_id: CuratorOpeningId<T>,
-            successful_curator_application_ids: BTreeSet<CuratorApplicationId<T>>
+            successful_curator_application_ids: CuratorApplicationIdSet<T>, 
         ) {
             // Ensure lead is set and is origin signer
             let (lead_id, _lead) = Self::ensure_origin_is_set_lead(origin)?;