add Source to wrapped payload

This commit is contained in:
Joel Wetzell
2026-03-16 18:54:54 -05:00
parent 36c0e9b23e
commit e95fb44064

View File

@@ -8,6 +8,7 @@ type WrappedPayload struct {
Payload any
Modules any
Sender any
Source string
End bool
}
@@ -25,5 +26,10 @@ func GetWrappedPayload(ctx context.Context, payload any) WrappedPayload {
if sender != nil {
templateData.Sender = sender
}
source := ctx.Value(SourceContextKey)
if source != nil {
templateData.Source = source.(string)
}
return templateData
}