aboutsummaryrefslogtreecommitdiff
path: root/src/fields/VideoField.ts
diff options
context:
space:
mode:
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
}
}