worknenjoy / gitpay

Bounties for issues on demand. Be rewarded by learning, using Git workflow and continuous integration
http://gitpay.me
Other
180 stars 159 forks source link

Remove deprecated updateAttributes #969

Closed alexanmtz closed 10 months ago

alexanmtz commented 1 year ago

Update attributes is deprecated from Sequelize, so all occurrences of updateAttributes in the model objects is not working anymore and can cause breaking in the system.

We need to replace all the occurrences to use the right way, which is:

models.ModelName.update(attribures, {where: { id: modelInstance.id }});
alexanmtz commented 10 months ago

Fixed in several commits