Skip to content

Commit

Permalink
Fix aggreate type convert
Browse files Browse the repository at this point in the history
  • Loading branch information
manyuanrong committed Apr 1, 2020
1 parent d2a0d88 commit a3ed90a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
## Examples

```ts
import { init, MongoClient } from "https://deno.land/x/[email protected].0/mod.ts";
import { init, MongoClient } from "https://deno.land/x/[email protected].1/mod.ts";

// Initialize the plugin
await init();
Expand Down
2 changes: 1 addition & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export * from "./ts/database.ts";
export * from "./ts/result.ts";
export { ObjectId } from "./ts/types.ts";
export * from "./ts/util.ts";
export const VERSION = "v0.5.0";
export const VERSION = "v0.5.1";
export const RELEASE_URL = `https://github.com/manyuanrong/deno_mongo/releases/download/${VERSION}`;
4 changes: 2 additions & 2 deletions ts/collection.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { MongoClient } from "./client.ts";
import { UpdateResult } from "./result.ts";
import { CommandType, FindOptions } from "./types.ts";
import { convert, parse } from "./type_convert.ts";
import { dispatchAsync, encode } from "./util.ts";
import { parse, convert } from "./type_convert.ts";

export class Collection {
constructor(
Expand Down Expand Up @@ -162,7 +162,7 @@ export class Collection {
})
)
);
return docs as T[];
return parse(docs) as T[];
}

public async createIndexes(
Expand Down

0 comments on commit a3ed90a

Please sign in to comment.