aboutsummaryrefslogtreecommitdiff
path: root/src/fields/VideoField.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-04-03 12:42:32 -0400
committerbob <bcz@cs.brown.edu>2019-04-03 12:42:32 -0400
commit5fbee077873c3dd0a9b5939babbaa1fd4dfe1393 (patch)
tree1418a22161e88c734f51c4e1a117c3957a14115d /src/fields/VideoField.ts
parentd9076d48a17a4ec2a5b4f4dbd82160bd10f1af22 (diff)
parentc406c8d123ce0aa9d63fb8a4dd90adfe83d2889d (diff)
merged with master
Diffstat (limited to 'src/fields/VideoField.ts')
-rw-r--r--src/fields/VideoField.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fields/VideoField.ts b/src/fields/VideoField.ts
index 5f4ae19bf..626e4ec83 100644
--- a/src/fields/VideoField.ts
+++ b/src/fields/VideoField.ts
@@ -19,10 +19,10 @@ export class VideoField extends BasicField<URL> {
return new VideoField(this.Data);
}
- ToJson(): { type: Types, data: URL, _id: string } {
+ ToJson(): { type: Types, data: string, _id: string } {
return {
type: Types.Video,
- data: this.Data,
+ data: this.Data.href,
_id: this.Id
}
}