que acababa de comprar

that [someone] had just bought

→ que
phrase Rare #58,119
that [someone] had just bought Acabar de + infinitive means “to have just done something”; acababa places it in the past. The person who bought it is understood from context.
SP: El libro que acababa de comprar estaba en la mochila.
EN: The book I’d just bought was in the backpack.

Tom puso el mantel nuevo que acababa de comprar en la mesa.

Tom put the new tablecloth he had just bought on the table.

Tom le puso cuerdas nuevas a la vieja guitarra que acababa de comprar.

Tom put new strings on the old guitar he had just bought.

Sally perdió las lentes de contacto que acababa de comprar el día anterior.

Sally lost the contact lenses she had just bought the day before.