Skip to content

Commit

Permalink
Fix invalid reference to .do (rethinkdb#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
deontologician committed May 20, 2016
1 parent 6e7eeaa commit 5784ff1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/auth.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import queryParse from './util/query-parse'
import { Observable } from 'rxjs/Observable'
import { _do as tap } from 'rxjs/operator/do'
import { map } from 'rxjs/operator/map'
import fetchJSON from './util/fetch.js'

Expand All @@ -15,9 +16,8 @@ export function authEndpoint(name) {
}
}
if (!this._authMethods) {
console.log('No auth methods, have to fetch')
return fetchJSON(`${this._horizonPath}/auth_methods`)
.do(authMethods => {
::tap(authMethods => {
this._authMethods = authMethods
})::map(endpointForName)
} else {
Expand Down
1 change: 1 addition & 0 deletions server/src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const ReqlConnection = require('./reql_connection').ReqlConnection;
const logger = require('./logger');
const options_schema = require('./schema/server_options').server;
const getType = require('mime-types').contentType;
const path = require('path')

// TODO: dynamically serve different versions of the horizon
// library. Minified, Rx included etc.
Expand Down

0 comments on commit 5784ff1

Please sign in to comment.