From 7166f6902c16bc93b866a546cf7b0005f10e0c71 Mon Sep 17 00:00:00 2001 From: Donlon Date: Wed, 23 Dec 2020 22:20:58 +0800 Subject: [PATCH] Fix inconsistent type of HookTask.Typ --- models/webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/webhook.go b/models/webhook.go index 9f1b6131afc54..f91d3695c09f5 100644 --- a/models/webhook.go +++ b/models/webhook.go @@ -641,7 +641,7 @@ type HookTask struct { RepoID int64 `xorm:"INDEX"` HookID int64 UUID string - Typ HookTaskType + Typ HookTaskType `xorm:"char(16) 'type'"` URL string `xorm:"TEXT"` Signature string `xorm:"TEXT"` api.Payloader `xorm:"-"`