The integral resolves, so you write the result in $u$.
An indefinite integral must come back to the original variable — $u$ never existed in the question. A definite integral whose limits you converted stays in $u$ and is finished.
Next time: Indefinite, substitute back; definite with new limits, don't.