From bb3ebfa2e3176fdfb648cb7da052e07989fee050 Mon Sep 17 00:00:00 2001 From: madelinegr Date: Wed, 13 Feb 2019 17:40:08 -0500 Subject: broke even --- src/fields/DocumentReference.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fields/DocumentReference.ts') 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 -- cgit v1.2.3-70-g09d2