Skip to content

Commit

Permalink
fix: unique constrain, generate hashes (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
weboko authored Sep 19, 2024
1 parent 427be33 commit 671347d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/dogfooding/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export async function app(telemetryClient: TelemetryClient) {
contentTopic: DEFAULT_CONTENT_TOPIC,
pubsubTopic: DEFAULT_PUBSUB_TOPIC,
ephemeral: false,
messageHash: "",
messageHash: await sha256(generateRandomNumber()),
errorMessage: result.error,
extraData: DEFAULT_EXTRA_DATA_STR,
});
Expand All @@ -237,7 +237,7 @@ export async function app(telemetryClient: TelemetryClient) {
contentTopic: DEFAULT_CONTENT_TOPIC,
pubsubTopic: DEFAULT_PUBSUB_TOPIC,
ephemeral: false,
messageHash: "",
messageHash: await sha256(generateRandomNumber()),
errorMessage: fail.error,
extraData,
};
Expand All @@ -256,7 +256,7 @@ export async function app(telemetryClient: TelemetryClient) {
contentTopic: DEFAULT_CONTENT_TOPIC,
pubsubTopic: DEFAULT_PUBSUB_TOPIC,
ephemeral: false,
messageHash: "",
messageHash: await sha256(generateRandomNumber()),
errorMessage: "",
extraData,
};
Expand Down

0 comments on commit 671347d

Please sign in to comment.