Skip to content
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

Closed
wants to merge 7 commits into from

Conversation

Damirikys
Copy link

No description provided.

@honest-hrundel
Copy link

🍏 Пройден линтинг и базовые тесты

@honest-hrundel
Copy link

🍏 Пройден линтинг и базовые тесты

@honest-hrundel
Copy link

🍏 Пройден линтинг и базовые тесты

@honest-hrundel
Copy link

🍏 Пройден линтинг и базовые тесты

autoIncrement: true,
primaryKey: true
},
name: DataTypes.STRING,

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

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({

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Есть же async, где тогда await? И зачем тут промисы?

@dimastark
Copy link

@Damirikys Будешь доделывать? Осталось то приключение на 20 минут, закомитил и запушил.

@honest-hrundel
Copy link

🍅 Не пройден линтинг или базовые тесты

@honest-hrundel
Copy link

🍏 Пройден линтинг и базовые тесты

@dimastark
Copy link

🔥 🔥 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants