Remove force_merge flag

This commit is contained in:
Andras Schmelczer 2026-01-13 20:29:26 +00:00
commit ea5a123cb8
6 changed files with 33 additions and 50 deletions

View file

@ -68,27 +68,21 @@ export class SyncService {
public async create({
relativePath,
contentBytes,
forceMerge
}: {
relativePath: RelativePath;
contentBytes: Uint8Array;
forceMerge?: boolean;
}): Promise<DocumentUpdateResponse> {
return this.retryForever(async () => {
const formData = new FormData();
formData.append("relative_path", relativePath);
if (forceMerge === true) {
formData.append("force_merge", "true");
}
formData.append(
"content",
new Blob([new Uint8Array(contentBytes)])
);
this.logger.debug(
`Creating document with relative path ${relativePath} (forceMerge: ${forceMerge})`
`Creating document with relative path ${relativePath}`
);
const response = await this.client(this.getUrl("/documents"), {