Added custom transaction.sync function to only send category id, not whole object