-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hyejung #7
Conversation
https://typescript-eslint.io/rules/no-empty-interface/ ์ฌ์ฉ ์ธํฐํ์ด์ค : SubscribeOptionDto.ts
import Period from '../models/Period'; | ||
import Quantity from '../models/Quantity'; | ||
import Review from '../models/Review'; | ||
import Subscribe from '../models/Subscribe'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋นผ๋จน์ ๋ก๋ ์ ์ฑ๊ฒจ์ฃผ์ ์ ๊ฐ์ผ๋น~! ๐
@@ -8,4 +8,4 @@ const QuantitySchema = new mongoose.Schema({ | |||
}, | |||
}); | |||
|
|||
export default mongoose.model<QuantityInfo & mongoose.Document>('Queantity', QuantitySchema); | |||
export default mongoose.model<QuantityInfo & mongoose.Document>('Quantity', QuantitySchema); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ง์ด ๋ฏธ์คํ ์,,
const periodOptions = await Period.find(); | ||
const quantityOptions = await Quantity.find(); | ||
|
||
if (!periodOptions || !quantityOptions) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์๋ฌ ๋ก์ง ์ฒ๋ฆฌ ์ข์์
const review = new Review(reviewCreateDto); | ||
await review.save(); | ||
|
||
const data = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id๋ฟ๋ง ์๋๋ผ db์ ๋ฑ๋ก๋ ๋ค๋ฅธ ๋ด์ฉ๋ response๋ก ๋ณด๋ด์ฃผ๋ฉด ์๋ง๊ฒ post๋๋์ง ํ์ธํ๊ธฐ ์ข๋ต๋๋ค.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ค์ค ์ข๋ค์ ! ๊ทธ๋ฌ๋ฉด findOne()
์ผ๋ก ํ ๋ฒ ๊ฒ์ํ ๊ฒฐ๊ณผ๋ฅผ ๋ณด๋ด์ฃผ๋๊ฒ ์ข์๊น์ ?!
๐ฑ๊ด๋ จ ์ด์
Related to:
#3
#5
#6
โ๋ฆฌ๋ทฐ ํฌ์ธํธ
src/loaders/db.ts
: ์ฝ๋ ์คํ ์ ๋น ์ปจ๋ ์ ์ด์ด๋ ์ปฌ๋ ์ ์์ฑ๋๋๋ก ์ฝ๋ ์ถ๊ฐํ์์ต๋๋ค!๐ซ ์ฐธ๊ณ