Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix typo

Neeraj Guptada797307affb
diff --git a/server/pkg/repo/public/file_link.go b/server/pkg/repo/public/file_link.go
index 1c699b237d..3131f64694 100644
--- a/server/pkg/repo/public/file_link.go
+++ b/server/pkg/repo/public/file_link.go
@@ -199,7 +199,7 @@ func (pcr *FileLinkRepository) RecordAccessHistory(ctx context.Context, shareID
func (pcr *FileLinkRepository) AccessedInPast(ctx context.Context, shareID string, ip string, ua string) (bool, error) {
row := pcr.DB.QueryRowContext(ctx, `select id from public_file_tokens_access_history where id =$1 and ip = $2 and user_agent = $3`,
shareID, ip, ua)
- var tempID int64
+ var tempID string
err := row.Scan(&tempID)
if errors.Is(err, sql.ErrNoRows) {
return false, nil