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

Commit

Permalink
Merge pull request #5105 from withspectrum/3.1.12
Browse files Browse the repository at this point in the history
3.1.12
  • Loading branch information
brianlovin authored May 13, 2019
2 parents ecd60ed + 6123b85 commit 5277cee
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 85 deletions.

This file was deleted.

4 changes: 2 additions & 2 deletions api/models/usersChannels.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ const createMemberInDefaultChannels = (communityId: string, userId: string): Pro
};

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

trackQueue.add({
Expand Down Expand Up @@ -490,7 +490,7 @@ const toggleUserChannelNotifications = async (userId: string, channelId: string,
return createMemberInChannel(channelId, userId, false)
}

return
return null
};

const removeUsersChannelMemberships = async (userId: string) => {
Expand Down
10 changes: 5 additions & 5 deletions now.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"DEBUG": "shared:rethinkdb:db-query-cache",
"S3_TOKEN": "@s3-token",
"S3_SECRET": "@s3-secret",
"COMPOSE_RETHINKDB_PASSWORD": "@github-compose-rethinkdb-password",
"COMPOSE_RETHINKDB_URL": "@github-compose-rethinkdb-url",
"COMPOSE_RETHINKDB_PORT": "@github-compose-rethinkdb-port",
"BACKUP_RETHINKDB_URL": "@backup-compose-rethinkdb-url",
"BACKUP_RETHINKDB_PORT": "@backup-compose-rethinkdb-port",
"COMPOSE_RETHINKDB_PASSWORD": "@new-compose-rethinkdb-password",
"COMPOSE_RETHINKDB_URL": "@new-compose-rethinkdb-url",
"COMPOSE_RETHINKDB_PORT": "@new-compose-rethinkdb-port",
"BACKUP_RETHINKDB_URL": "@new-backup-compose-rethinkdb-url",
"BACKUP_RETHINKDB_PORT": "@new-backup-compose-rethinkdb-port",
"AWS_RETHINKDB_PASSWORD": "@aws-rethinkdb-password",
"AWS_RETHINKDB_URL": "@aws-rethinkdb-url",
"AWS_RETHINKDB_PORT": "@aws-rethinkdb-port",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Spectrum",
"version": "3.1.11",
"version": "3.1.12",
"license": "BSD-3-Clause",
"devDependencies": {
"@babel/preset-flow": "^7.0.0",
Expand Down
4 changes: 2 additions & 2 deletions shared/imgix/sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ const defaultOpts = {

const signPrimary = (url: string, opts: Opts = defaultOpts): string => {
const client = new ImgixClient({
domains: ['spectrum.imgix.net'],
domains: 'spectrum.imgix.net',
secureURLToken: process.env.IMGIX_SECURITY_KEY,
});
return client.buildURL(url, opts);
};

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

0 comments on commit 5277cee

Please sign in to comment.