Skip to content

Commit

Permalink
fix: 번들 생성 시 bundleOrder에 null 들어가는 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
annahxxl committed Mar 8, 2024
1 parent ec2066a commit c6e24fc
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ class BundleService(
val tags = request.tagIds?.let { getExistTags(it) } ?: emptyList()
val bundle = request.toEntity(member)
bundle.updateBundleTags(tags.map { BundleTag(bundle, it) })
member.updateBundleOrder((member.bundleOrder + " " + bundle.id).trim())
return getBundle(bundleRepository.save(bundle).id!!, false, member)

val savedBundle = bundleRepository.save(bundle)
member.updateBundleOrder((member.bundleOrder + " " + savedBundle.id).trim())

return getBundle(savedBundle.id!!, false, member)
}

@Transactional(readOnly = true)
Expand Down

0 comments on commit c6e24fc

Please sign in to comment.