Skip to content

Commit a282516

Browse files
committed
Added timestamp to posted data
1 parent d52ff62 commit a282516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export function genKeyPair(seed = randomUUID()){
125125
export function decoratePayload(payload){
126126
// Idempotency_key to uniquely identify a payload
127127
const id = randStr();
128-
return {id: id, data: payload};
128+
return {id: id, time: Date.now(), data: payload};
129129
}
130130

131131
export async function publicProduce(publicKey, data){

0 commit comments

Comments
 (0)