Skip to content

Commit

Permalink
added zome functions to get developer collecctive links only
Browse files Browse the repository at this point in the history
  • Loading branch information
matthme committed Apr 22, 2024
1 parent 9b0816a commit 4a26312
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion dnas/tools/zomes/coordinator/library/src/developer_collective.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,18 @@ pub fn get_oldest_delete_for_developer_collective(
Ok(deletes.first().cloned())
}
#[hdk_extern]
pub fn get_my_developer_collectives(_: ()) -> ExternResult<Vec<Record>> {
pub fn get_my_developer_collective_links(_: ()) -> ExternResult<Vec<Link>> {
get_links(
GetLinksInputBuilder::try_new(
agent_info()?.agent_initial_pubkey,
LinkTypes::DeveloperCollectiveToOwner,
)?
.build(),
)
}

#[hdk_extern]
pub fn get_my_original_developer_collectives(_: ()) -> ExternResult<Vec<Record>> {
let links = get_links(
GetLinksInputBuilder::try_new(
agent_info()?.agent_initial_pubkey,
Expand Down

0 comments on commit 4a26312

Please sign in to comment.