Skip to content

Commit

Permalink
Include custodianInfo and accessLevel in NATS message for Tempo update
Browse files Browse the repository at this point in the history
  • Loading branch information
qu8n committed May 21, 2024
1 parent 32c9bb9 commit 7546b59
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion graphql-server/src/schemas/neo4j.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,16 +181,20 @@ async function publishNatsMessageForSampleBillingUpdates(
primaryId: string,
updatedSamples: ApolloQueryResult<UpdateSamplesMutationResponse>
) {
const { billed, billedBy, costCenter } =
const { billed, billedBy, costCenter, accessLevel, custodianInformation } =
updatedSamples.data.samples[0].hasTempoTempos[0];

const dataForTempoBillingUpdate = {
primaryId,
billed,
billedBy,
costCenter,
accessLevel,
custodianInformation,
};

console.log("dataForTempoBillingUpdate: ", dataForTempoBillingUpdate);

publishNatsMessage(
props.pub_tempo_sample_billing,
JSON.stringify(dataForTempoBillingUpdate)
Expand Down

0 comments on commit 7546b59

Please sign in to comment.