소스 검색

Fixed typo

Neeraj Gupta 1 년 전
부모
커밋
ef0873082a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      server/pkg/repo/cast/repo.go

+ 2 - 2
server/pkg/repo/cast/repo.go

@@ -90,8 +90,8 @@ func (r *Repository) UpdateLastUsedAtForToken(ctx context.Context, token string)
 }
 
 // DeleteOldCodes that are not associated with a collection and are older than the given time
-func (r *Repository) DeleteOldCodes(ctx context.Context, expirtyTime int64) error {
-	_, err := r.DB.ExecContext(ctx, "DELETE FROM casting WHERE last_used_at < $1 and is_deleted=false and collection_id is null", expirtyTime)
+func (r *Repository) DeleteOldCodes(ctx context.Context, expiryTime int64) error {
+	_, err := r.DB.ExecContext(ctx, "DELETE FROM casting WHERE last_used_at < $1 and is_deleted=false and collection_id is null", expiryTime)
 	if err != nil {
 		return err
 	}