chore: Suppress unneccessary model warnings from Sequelize upgrade
This commit is contained in:
@@ -9,6 +9,10 @@
|
|||||||
export default function Fix(target: any): void {
|
export default function Fix(target: any): void {
|
||||||
return class extends target {
|
return class extends target {
|
||||||
constructor(...args: any[]) {
|
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);
|
super(...args);
|
||||||
|
|
||||||
const rawAttributes = Object.keys(new.target.rawAttributes);
|
const rawAttributes = Object.keys(new.target.rawAttributes);
|
||||||
|
|||||||
Reference in New Issue
Block a user