Skip to content

Commit

Permalink
fix(client/keyvalue): set keyvalue content-type text (medplum#4575)
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonstreator committed May 21, 2024
1 parent da94eea commit ea510a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/keyvalue.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { MedplumClient } from './client';
import { ContentType } from './contenttype';

export class MedplumKeyValueClient {
constructor(readonly medplum: MedplumClient) {}
Expand All @@ -18,7 +19,7 @@ export class MedplumKeyValueClient {
* @param value - The value to set.
*/
async set(key: string, value: string): Promise<void> {
await this.medplum.put(`keyvalue/v1/${key}`, value);
await this.medplum.put(`keyvalue/v1/${key}`, value, ContentType.TEXT);
}

/**
Expand Down

0 comments on commit ea510a4

Please sign in to comment.