We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72d8577 commit be5cad2Copy full SHA for be5cad2
1 file changed
src/lib/api/api.ts
@@ -250,13 +250,12 @@ class ClerkEncryptedApiService {
250
251
const encryptedData = await this.encryptNoteForApi(title, content);
252
253
+ const { title: _, content: __, ...restNoteData } = noteData;
254
+
255
const apiNote = await this.request<ApiNote>('/notes', {
256
method: 'POST',
257
body: JSON.stringify({
- ...noteData,
- // Remove plain text fields completely when sending encrypted data
258
- title: undefined,
259
- content: undefined,
+ ...restNoteData,
260
...encryptedData,
261
}),
262
});
0 commit comments