Skip to content

Commit

Permalink
fix task
Browse files Browse the repository at this point in the history
  • Loading branch information
limes-cloud committed Jul 5, 2024
1 parent 636c393 commit d00442d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/data/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ func (r exportRepo) clearExportFile() {

for _, item := range files {
var count int64
if err := ctx.DB().Where("sha=?", item.Sha).Count(&count).Error; err != nil {
if err := ctx.DB().Model(model.File{}).Where("sha=?", item.Sha).Count(&count).Error; err != nil {
ctx.Logger().Warnw("msg", "get expire export file count error", "err", err.Error())
return
}
Expand Down
Binary file added static/a9f224627346905e258d771e4043f921.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/export/tmp/385d37202ae8f08cd8ba429eb51b5422.png
Binary file not shown.

0 comments on commit d00442d

Please sign in to comment.