diff --git a/models/attachment.go b/models/attachment.go index c7d058651..a3fc6fa01 100755 --- a/models/attachment.go +++ b/models/attachment.go @@ -571,8 +571,8 @@ func Attachments(opts *AttachmentsOptions) ([]*AttachmentInfo, int64, error) { } if opts.JustNeedZipFile { - var DecompressState []int - DecompressState = append(DecompressState, 1, 2, 3) + var DecompressState []int32 + DecompressState = append(DecompressState, DecompressStateDone, DecompressStateIng, DecompressStateFailed) cond = cond.And( builder.In("attachment.decompress_state", DecompressState), )