diff options
author | madelinegr <laura_wilson@brown.edu> | 2019-02-13 17:40:08 -0500 |
---|---|---|
committer | madelinegr <laura_wilson@brown.edu> | 2019-02-13 17:40:08 -0500 |
commit | bb3ebfa2e3176fdfb648cb7da052e07989fee050 (patch) | |
tree | 95bca297ca99f9bacc4512c44ab573ef5ce7bdae /src/fields/DocumentReference.ts | |
parent | 430878f6dd8d36b1322e15d0898ada0d44fecacb (diff) |
broke even
Diffstat (limited to 'src/fields/DocumentReference.ts')
-rw-r--r-- | src/fields/DocumentReference.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fields/DocumentReference.ts b/src/fields/DocumentReference.ts index b3d8e059d..c9313a73e 100644 --- a/src/fields/DocumentReference.ts +++ b/src/fields/DocumentReference.ts @@ -43,11 +43,11 @@ export class DocumentReference extends Field { return ""; } - ToJson(): { type: Types, data: FIELD_ID, _id: ObjectID } { + ToJson(): { type: Types, data: FIELD_ID, _id: String } { return { type: Types.DocumentReference, data: this.document.Id, - _id: new ObjectID(this.Id) + _id: this.Id } } }
\ No newline at end of file |