-
Notifications
You must be signed in to change notification settings - Fork 39
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
Шайхисламов Дамир #31
Conversation
🍏 Пройден линтинг и базовые тесты |
🍏 Пройден линтинг и базовые тесты |
🍏 Пройден линтинг и базовые тесты |
🍏 Пройден линтинг и базовые тесты |
autoIncrement: true, | ||
primaryKey: true | ||
}, | ||
name: DataTypes.STRING, |
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.
Тут по смыслу не все поля обязательные. Надо бы озаботиться дефолтами.
models/user.js
Outdated
autoIncrement: true, | ||
primaryKey: true | ||
}, | ||
login: DataTypes.STRING |
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.
Тут вроде должны быть еще кое-какие ограничения...
queries.js
Outdated
const { id: userId } = await this.User.findOne({ where: { login } }); | ||
const souvenir = await this.Souvenir.findById(souvenirId); | ||
|
||
return this.sequelize.transaction(transaction => souvenir.createReview({ |
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.
Есть же async, где тогда await? И зачем тут промисы?
@Damirikys Будешь доделывать? Осталось то приключение на 20 минут, закомитил и запушил. |
🍅 Не пройден линтинг или базовые тесты |
🍏 Пройден линтинг и базовые тесты |
🔥 🔥 🔥 |
No description provided.