mirror of
https://github.com/waku-org/js-waku-lab.git
synced 2025-01-28 17:56:03 +00:00
fix: unique constrain, generate hashes (#90)
This commit is contained in:
parent
427be338eb
commit
671347d42f
@ -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,
|
||||
});
|
||||
@ -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,
|
||||
};
|
||||
@ -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,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user