chore: Upgrade pg and sequelize to support node 14+ (#1462)
* Upgrade pg and sequelize to support node 14+ When Node 14 came out the app was incompatible, we should always have a maximum version defined here until the server code has been tested to prove compatibility Co-authored-by: Lance Whatley <whatl3y@gmail.com>
This commit is contained in:
@ -250,11 +250,13 @@ Collection.prototype.addDocumentToStructure = async function (
|
||||
}
|
||||
|
||||
// Sequelize doesn't seem to set the value with splice on JSONB field
|
||||
this.documentStructure = this.documentStructure;
|
||||
// https://github.com/sequelize/sequelize/blob/e1446837196c07b8ff0c23359b958d68af40fd6d/src/model.js#L3937
|
||||
this.changed("documentStructure", true);
|
||||
|
||||
if (options.save !== false) {
|
||||
await this.save({
|
||||
...options,
|
||||
fields: ["documentStructure"],
|
||||
transaction,
|
||||
});
|
||||
if (transaction) {
|
||||
|
Reference in New Issue
Block a user