This repository was archived by the owner on Oct 11, 2022. It is now read-only.
File tree 7 files changed +13
-7
lines changed
7 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ export default async (
33
33
34
34
loaders . channelSettings . clear ( channelId ) ;
35
35
36
- if ( settings ) {
36
+ // settings.id tells us that a channelSettings record exists in the db
37
+ if ( settings . id ) {
37
38
return await disableChannelTokenJoin ( channelId ) ;
38
39
} else {
39
40
return await createChannelSettings ( channelId ) ;
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ export default async (
33
33
34
34
loaders . channelSettings . clear ( channelId ) ;
35
35
36
- if ( settings ) {
36
+ // settings.id tells us that a channelSettings record exists in the db
37
+ if ( settings . id ) {
37
38
return await enableChannelTokenJoin ( channelId ) ;
38
39
} else {
39
40
return await createChannelSettings ( channelId ) . then ( ( ) =>
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ export default async (
34
34
35
35
loaders . channelSettings . clear ( channelId ) ;
36
36
37
- if ( settings ) {
37
+ // settings.id tells us that a channelSettings record exists in the db
38
+ if ( settings . id ) {
38
39
return await resetChannelJoinToken ( channelId ) ;
39
40
} else {
40
41
return await createChannelSettings ( channelId ) . then (
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ export default async (
33
33
34
34
loaders . communitySettings . clear ( communityId ) ;
35
35
36
- if ( settings ) {
36
+ // settings.id tells us that a channelSettings record exists in the db
37
+ if ( settings . id ) {
37
38
return await disableCommunityBrandedLogin ( communityId ) ;
38
39
} else {
39
40
return await createCommunitySettings ( communityId ) ;
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ export default async (
33
33
34
34
loaders . communitySettings . clear ( communityId ) ;
35
35
36
- if ( settings ) {
36
+ // settings.id tells us that a channelSettings record exists in the db
37
+ if ( settings . id ) {
37
38
return await enableCommunityBrandedLogin ( communityId ) ;
38
39
} else {
39
40
return await createCommunitySettings ( communityId ) . then (
Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ export default async (
40
40
41
41
loaders . communitySettings . clear ( communityId ) ;
42
42
43
- if ( settings ) {
43
+ // settings.id tells us that a channelSettings record exists in the db
44
+ if ( settings . id ) {
44
45
return await updateCommunityBrandedLoginMessage ( communityId , message ) ;
45
46
} else {
46
47
return await createCommunitySettings ( communityId ) . then (
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " Spectrum" ,
3
- "version" : " 2.1.11 " ,
3
+ "version" : " 2.1.12 " ,
4
4
"private" : true ,
5
5
"devDependencies" : {
6
6
"babel-cli" : " ^6.24.1" ,
You can’t perform that action at this time.
0 commit comments