Skip to content

Commit

Permalink
fix(compat): RXJS conflict with find operator. causes compile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Kimball committed Feb 7, 2018
1 parent 8830c79 commit fc797ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
> The official client library for connecting to Bullhorn REST API
---

[![Build Status](https://travis-ci.org/bullhorn/taurus.svg?branch=master)](https://travis-ci.org/bullhorn/taurus)
[![Dependency Status](https://dependencyci.com/github/bullhorn/taurus/badge)](https://dependencyci.com/github/bullhorn/taurus)
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
[![Dependency Status](https://dependencyci.com/github/bullhorn/taurus/badge)](https://dependencyci.com/github/bullhorn/taurus)
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
[![npm version](https://badge.fury.io/js/%40bullhorn%2Ftaurus.svg)](https://badge.fury.io/js/%40bullhorn%2Ftaurus)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

---

[Website](http://bullhorn.github.io)[Docs](http://bullhorn.github.io/taurus)[Blog](https://medium.com/bullhorn-dev)
[Website](http://bullhorn.github.io)[Docs](http://bullhorn.github.io/taurus)[Blog](https://medium.com/bullhorn-dev)

## What can Taurus do?

Expand Down Expand Up @@ -45,15 +45,15 @@ staffing.login(provider).then(() => {
console.log('We Are Doing it!');
});

// or
// or

const app = Staffing.loginWithPopup('https://login.bullhorn.com');

```

## Getting the data

Now we need to get some data. Taurus provides several convience function to Search and retrieve entities within the system.
Now we need to get some data. Taurus provides several convience function to Search and retrieve entities within the system.

### Object Data

Expand Down
6 changes: 3 additions & 3 deletions src/core/EntityList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class EntityList<T> extends StatefulSubject<T[]> {
};
}

find(pk: number): Entity<T> {
findById(pk: number): Entity<T> {
const found: any = this.getValue().find((item: any) => item.id === pk);
if (found) {
return found;
Expand All @@ -108,14 +108,14 @@ export class EntityList<T> extends StatefulSubject<T[]> {

async update(item: EntityOperation, value: T): Promise<any> {
return this._checkOperationCases(item, {
keyCase: async () => this.find(item as number).patch(value).save(),
keyCase: async () => this.findById(item as number).patch(value).save(),
entityCase: async () => (item as Entity<any>).patch(value).save()
}).then(this._eventHook('child_updated'));
}

async remove(item: EntityOperation): Promise<any> {
return this._checkOperationCases(item, {
keyCase: async () => this.find(item as number).remove(),
keyCase: async () => this.findById(item as number).remove(),
entityCase: async () => (item as Entity<any>).remove()
}).then(this._eventHook('child_removed'));
}
Expand Down

0 comments on commit fc797ac

Please sign in to comment.