Skip to content

Commit 9e6ba24

Browse files
committed
Reuse the request uuid as the proposal uuid
1 parent ca6d12e commit 9e6ba24

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

webapi/apiSpInvoke.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,10 @@ func apiSpInvoke(c echo.Context) (defErr error) {
331331
ctx,
332332
`
333333
INSERT INTO spd.proposals
334-
( piece_id, provider_id, client_id, start_epoch, end_epoch, proxied_log2_size, proposal_meta )
335-
VALUES ( $1, $2, $3, $4, $5, $6, $7 )
334+
( proposal_uuid, piece_id, provider_id, client_id, start_epoch, end_epoch, proxied_log2_size, proposal_meta )
335+
VALUES ( $1, $2, $3, $4, $5, $6, $7, $8 )
336336
`,
337+
c.Request().Header.Get("X-SPADE-REQUEST-UUID"), // inherit the request uuid as the proposal uuid (a uuid is a uuid is a uuid)
337338
chosenTenant.PieceID,
338339
ctxMeta.authedActorID,
339340
*chosenTenant.TenantClientID,

0 commit comments

Comments
 (0)