Api: ๐ ๋ชฉํ ๊ธ์ก DELETE ์ ์ฆ ์ผ์ด์ค ์๋ชป๋ ํํฐ๋ง ์ ๊ฑฐ #132
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
์์ ์ด์
์์ ์ฌํญ
๊ธฐ์กด์๋ "amount == -1", ์ฆ ๋ชฉํ ๊ธ์ก์ด ์ค์ ๋์ด ์์ง ์๋ ๋ฐ์ดํฐ๋ฅผ ํํฐ๋งํด๋ ๋ฌด๋ฐฉํ์ต๋๋ค.
ํ์ง๋ง ๋ชฉํ ๊ธ์ก์
is_read
๋ผ๋ ํ๋๊ฐ ์ถ๊ฐ๋๋ฉด์, ๋ชฉํ ๊ธ์ก์ด ํ ๋น๋์ด ์์ง ์์ ๋์์ is_read๋ฅผ false๋ก ๋ฐ๊พธ๊ธฐ ์ํด DELETE ์์ฒญ์ ๋ณด๋ด๋ Usecase๊ฐ ์ถ๊ฐ๋์์ต๋๋ค.๋ฐ๋ผ์ filter๋ฅผ ์ ๊ฑฐํ์ฌ ์์ฒญ์ ์ฑ๊ณต์ ์ผ๋ก ์ฒ๋ฆฌํ๋๋ก ์์ ํ์ต๋๋ค.
๋ฆฌ๋ทฐ์ด๊ฐ ์ค์ ์ ์ผ๋ก ํ์ธํด์ผ ํ๋ ๋ถ๋ถ
๋ฐ๊ฒฌํ ์ด์