chore: Suppress unneccessary model warnings from Sequelize upgrade

This commit is contained in:
Tom Moor
2022-06-07 09:38:00 +02:00
parent ac551a3c44
commit 0de6650aa5

View File

@ -9,6 +9,10 @@
export default function Fix(target: any): void {
return class extends target {
constructor(...args: any[]) {
// suppresses warning from here which is not applicable in our typescript
// environment: https://github.com/sequelize/sequelize/blob/00ced18c2cb2a8b99ae0ebf5669c124abb4c673d/src/model.js#L99
target._overwrittenAttributesChecked = true;
super(...args);
const rawAttributes = Object.keys(new.target.rawAttributes);