@@ -3,9 +3,9 @@ const proposalService = require("../../services/proposal.service");
33const { ChoiceType } = require ( "../../constants" ) ;
44const isEmpty = require ( "lodash.isempty" ) ;
55const { spaces : spaceServices } = require ( "../../spaces" ) ;
6- const { Accessibility } = require ( "../../consts/space" ) ;
6+ const { Accessibility, SpaceType } = require ( "../../consts/space" ) ;
77const { checkProposalContent } = require ( "./checkProposalContent" ) ;
8- const isEqual = require ( "lodash.isequal " ) ;
8+ const isMatch = require ( "lodash.ismatch " ) ;
99const pick = require ( "lodash/pick" ) ;
1010const { getLatestHeight } = require ( "../../services/chain.service" ) ;
1111const { strategies } = require ( "../../consts/voting" ) ;
@@ -85,9 +85,10 @@ async function checkSnapshotHeights(data) {
8585 const { networksConfig, snapshotHeights } = data ;
8686
8787 if (
88- networksConfig . accessibility === Accessibility . WHITELIST &&
89- networksConfig . strategies ?. length === 1 &&
90- networksConfig . strategies [ 0 ] === strategies . onePersonOneVote
88+ networksConfig . type === SpaceType . CollectivesDao ||
89+ ( networksConfig . accessibility === Accessibility . WHITELIST &&
90+ networksConfig . strategies ?. length === 1 &&
91+ networksConfig . strategies [ 0 ] === strategies . onePersonOneVote )
9192 ) {
9293 // We don't need snapshotHeights in this case
9394 return ;
@@ -155,7 +156,7 @@ function checkNetworkConfig(data) {
155156 ...pick ( spaceService , [ "quorum" , "version" ] ) ,
156157 } ;
157158
158- if ( ! isEqual ( networksConfig , spaceNetworksConfig ) ) {
159+ if ( ! isMatch ( networksConfig , spaceNetworksConfig ) ) {
159160 throw new HttpError ( 400 , {
160161 networksConfig : [
161162 "The proposal networks config is not matching the space config" ,
0 commit comments