From 70369875a8f46660ec6096b8f7094609640acfd3 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 21 Oct 2024 18:58:45 +0530 Subject: [PATCH] feat: runByAPI type boolean --- server/src/models/Run.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: {