feat: runByAPI type boolean

This commit is contained in:
karishmas6
2024-10-21 18:58:45 +05:30
parent dcaaa8459f
commit 70369875a8

View File

@@ -22,7 +22,7 @@ interface RunAttributes {
runId: string;
runByUserId?: string;
runByScheduleId?: string;
runByAPI?: string;
runByAPI?: boolean;
serializableOutput: Record<string, any[]>;
binaryOutput: Record<string, string>;
}
@@ -43,7 +43,7 @@ class Run extends Model<RunAttributes, RunCreationAttributes> implements RunAttr
public runId!: string;
public runByUserId!: string;
public runByScheduleId!: string;
public runByAPI!: string;
public runByAPI!: boolean;
public serializableOutput!: Record<string, any[]>;
public binaryOutput!: Record<string, any>;
}
@@ -108,7 +108,7 @@ Run.init(
allowNull: true,
},
runByAPI: {
type: DataTypes.STRING(255),
type: DataTypes.BOOLEAN,
allowNull: true,
},
serializableOutput: {