aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Document.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/fields/Document.ts')
-rw-r--r--src/fields/Document.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fields/Document.ts b/src/fields/Document.ts
index 628fe684c..884e7374b 100644
--- a/src/fields/Document.ts
+++ b/src/fields/Document.ts
@@ -410,11 +410,11 @@ export class Document extends Field {
return copy;
}
- ToJson(): { type: Types; data: [string, string][]; _id: string } {
- let fields: [string, string][] = [];
+ ToJson(): { type: Types; data: { key: string, field: string }[]; _id: string } {
+ let fields: { key: string, field: string }[] = [];
this._proxies.forEach((field, key) => {
if (field) {
- fields.push([key, field]);
+ fields.push({ key, field });
}
});