diff --git a/server/src/models/Run.ts b/server/src/models/Run.ts index e64cab19..c7f9f6f2 100644 --- a/server/src/models/Run.ts +++ b/server/src/models/Run.ts @@ -22,7 +22,7 @@ interface RunAttributes { runId: string; runByUserId?: string; runByScheduleId?: string; - runByAPI?: string; + runByAPI?: boolean; serializableOutput: Record; binaryOutput: Record; } @@ -43,7 +43,7 @@ class Run extends Model implements RunAttr public runId!: string; public runByUserId!: string; public runByScheduleId!: string; - public runByAPI!: string; + public runByAPI!: boolean; public serializableOutput!: Record; public binaryOutput!: Record; } @@ -108,7 +108,7 @@ Run.init( allowNull: true, }, runByAPI: { - type: DataTypes.STRING(255), + type: DataTypes.BOOLEAN, allowNull: true, }, serializableOutput: {