Skip to content

Commit 9e37f95

Browse files
committed
Correct storing of VC versions
1 parent fd67e74 commit 9e37f95

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/resource.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,12 @@ class Resource {
183183
public async post(videomail: PartialVideomail) {
184184
const newVideomail: PartialVideomail = this.applyDefaultValues(videomail);
185185

186+
if (!newVideomail.versions) {
187+
newVideomail.versions = {};
188+
}
189+
186190
// Always good to know the version of the client the videomail was submitted with
187-
newVideomail[Constants.VERSION_LABEL] = videomailClientVersion;
191+
newVideomail.versions.videomailClient = videomailClientVersion;
188192

189193
// Likewise, good to know where it has been recorded
190194
newVideomail.recordLocation = window.location.href;

0 commit comments

Comments
 (0)