improve README

This commit is contained in:
2016-09-12 22:11:17 +02:00
parent e508a942e3
commit 11149b2712
8 changed files with 69 additions and 19 deletions

View File

@ -15,7 +15,7 @@ export class DbCollection<T> {
/**
* finds an object in the DbCollection
*/
find(docMatchArg: T): plugins.q.Promise<T[]> {
find(docMatchArg: T | any): plugins.q.Promise<T[]> {
let done = plugins.q.defer<T[]>()
this.collection.find(docMatchArg).toArray((err, docs) => {
if (err) { throw err }

View File