getWorkspaceID retrieves the workspace ID from the context.
(ctx context.Context)
| 120 | |
| 121 | // getWorkspaceID retrieves the workspace ID from the context. |
| 122 | func getWorkspaceID(ctx context.Context) string { |
| 123 | if id, ok := ctx.Value(workspaceIDKey{}).(string); ok { |
| 124 | return id |
| 125 | } |
| 126 | return "" |
| 127 | } |
no outgoing calls