Skip to content

Commit c839d6f

Browse files
authored
Revert "Fix missed table name on iterate lfs meta objects" (#24764)
This reverts commit 3364092. It was accidentally pushed to `main` without a review.
1 parent 29096d8 commit c839d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/git/lfs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ func IterateLFSMetaObjectsForRepo(ctx context.Context, repoID int64, f func(cont
390390

391391
for {
392392
beans := make([]*CountLFSMetaObject, 0, batchSize)
393-
sess := engine.Table("lfs_meta_object").Select("`lfs_meta_object`.*, COUNT(`l1`.oid) AS `count`").
393+
sess := engine.Select("`lfs_meta_object`.*, COUNT(`l1`.oid) AS `count`").
394394
Join("INNER", "`lfs_meta_object` AS l1", "`lfs_meta_object`.oid = `l1`.oid").
395395
Where("`lfs_meta_object`.repository_id = ?", repoID)
396396
if !opts.OlderThan.IsZero() {

0 commit comments

Comments
 (0)