Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit db9e9ba

Browse files
authored
Merge pull request #5104 from withspectrum/remove-domain-sharding-imgix
Remove domain sharding from imgix construction
2 parents 1ca17a7 + caef630 commit db9e9ba

File tree

3 files changed

+4
-79
lines changed

3 files changed

+4
-79
lines changed

api/migrations/20190501021006-remove-all-private-channel-members.js

Lines changed: 0 additions & 75 deletions
This file was deleted.

api/models/usersChannels.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ const createMemberInDefaultChannels = (communityId: string, userId: string): Pro
452452
};
453453

454454
// prettier-ignore
455-
const toggleUserChannelNotifications = async (userId: string, channelId: string, value: boolean): Promise<DBChannel> => {
455+
const toggleUserChannelNotifications = async (userId: string, channelId: string, value: boolean): Promise<?DBChannel> => {
456456
const event = value ? events.CHANNEL_NOTIFICATIONS_ENABLED : events.CHANNEL_NOTIFICATIONS_DISABLED
457457

458458
trackQueue.add({
@@ -490,7 +490,7 @@ const toggleUserChannelNotifications = async (userId: string, channelId: string,
490490
return createMemberInChannel(channelId, userId, false)
491491
}
492492

493-
return
493+
return null
494494
};
495495

496496
const removeUsersChannelMemberships = async (userId: string) => {

shared/imgix/sign.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ const defaultOpts = {
3636

3737
const signPrimary = (url: string, opts: Opts = defaultOpts): string => {
3838
const client = new ImgixClient({
39-
domains: ['spectrum.imgix.net'],
39+
domains: 'spectrum.imgix.net',
4040
secureURLToken: process.env.IMGIX_SECURITY_KEY,
4141
});
4242
return client.buildURL(url, opts);
4343
};
4444

4545
const signProxy = (url: string, opts?: Opts = defaultOpts): string => {
4646
const client = new ImgixClient({
47-
domains: ['spectrum-proxy.imgix.net'],
47+
domains: 'spectrum-proxy.imgix.net',
4848
secureURLToken: process.env.IMGIX_PROXY_SECURITY_KEY,
4949
});
5050
return client.buildURL(url, opts);

0 commit comments

Comments
 (0)