MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / domainToEditRemote

Function domainToEditRemote

app/src/sqlite/note.ts:82–92  ·  view source on GitHub ↗
(
	note: Note,
	remoteIds: Map<RemoteNoteId, RemoteTemplateId>,
)

Source from the content-addressed store, hash-verified

80}
81
82function domainToEditRemote(
83 note: Note,
84 remoteIds: Map<RemoteNoteId, RemoteTemplateId>,
85) {
86 return {
87 localId: note.id,
88 remoteIds,
89 fieldValues: note.fieldValues,
90 tags: Array.from(note.tags),
91 } satisfies EditRemoteNote
92}
93
94// The point of this type is to cause an error if something is added to NoteBase
95// If that happens, you probably want to update the `doUpdateSet` call.

Callers 1

getEditedNotesToUploadFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected