summaryrefslogtreecommitdiff
path: root/js/copy_file.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/copy_file.ts')
-rw-r--r--js/copy_file.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/js/copy_file.ts b/js/copy_file.ts
index a6ff9439e..5cab6d579 100644
--- a/js/copy_file.ts
+++ b/js/copy_file.ts
@@ -10,10 +10,7 @@ function req(
const builder = flatbuffers.createBuilder();
const from_ = builder.createString(from);
const to_ = builder.createString(to);
- msg.CopyFile.startCopyFile(builder);
- msg.CopyFile.addFrom(builder, from_);
- msg.CopyFile.addTo(builder, to_);
- const inner = msg.CopyFile.endCopyFile(builder);
+ const inner = msg.CopyFile.createCopyFile(builder, from_, to_);
return [builder, msg.Any.CopyFile, inner];
}