Orbit

Summary

Entry

Lifecycle

plant {
      while(next != null) {
            result = getMembersFromOrbit
            members += result.members
            next = result.next
      }

      create, conflicts = membersToNotes(members)

      bulkAddNotes(create)

      @onConflict(conflicts)

}

membersToNotes {
      members.each m => {

            noteName = cleanFname
            note = getNoteByFnameV5

            if note {
                  conflicts = getConflictedData
                  if (conflicts) {
                        conflicts.push conflicts
                  } else {
                        updateNote
                  }
            } else {
                  create.push note
            }

      }
      updateNoteData
}

onConflict {

}

Reference

Cook

Past Tasks