diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-04-14 22:59:58 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-04-14 22:59:58 -0400 |
commit | c6360fb4aed348f6f6a3c7412b6acc0d1990c239 (patch) | |
tree | 3018ea887b40bacac92a137206d5e5f5c34a12bd /src/fields/Key.ts | |
parent | 5fbee077873c3dd0a9b5939babbaa1fd4dfe1393 (diff) | |
parent | c787b0eac374b4dabf6ede7ee40e77a28815d5c8 (diff) |
merged with master
Diffstat (limited to 'src/fields/Key.ts')
-rw-r--r-- | src/fields/Key.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fields/Key.ts b/src/fields/Key.ts index 00d78d516..57e2dadf0 100644 --- a/src/fields/Key.ts +++ b/src/fields/Key.ts @@ -1,4 +1,4 @@ -import { Field, FieldId } from "./Field" +import { Field, FieldId } from "./Field"; import { Utils } from "../Utils"; import { observable } from "mobx"; import { Types } from "../server/Message"; @@ -16,7 +16,7 @@ export class Key extends Field { this.name = name; if (save) { - Server.UpdateField(this) + Server.UpdateField(this); } } @@ -40,11 +40,11 @@ export class Key extends Field { return name; } - ToJson(): { type: Types, data: string, _id: string } { + ToJson() { return { type: Types.Key, data: this.name, - _id: this.Id - } + id: this.Id + }; } }
\ No newline at end of file |