LinkAce icon indicating copy to clipboard operation
LinkAce copied to clipboard

last_checked_at is never set (links:check)

Open sinky opened this issue 10 months ago • 0 comments

Bug Description

Hello, I've just installed LinkAce and imported a bunch of links. However i've noticed that the "links:check" doesn't work properly.

It only checks the same links each time it runs.

The "last_checked_at" column is NULL but "status" is 1 So here the changed "last_checked_at" (with current datetime) wont be saved, because status is already OK https://github.com/Kovah/LinkAce/blob/78ae9a2a073164cd1789859e8a690c11fc2b99c0/app/Console/Commands/CheckLinksCommand.php#L124

If I understand the code correctly, the "last_checked_at" is never set on the links. And it checks the same links again because there is no "last_checked_at" value.

How to reproduce

Install empty instance Import links run php artisan links:check check output run php artisan links:check same output as before check database column "last_checked_at" is empty

Expected behavior

It should save the new last_checked_at every time a check is run.

Logs


Screenshots

Image

Image

LinkAce version

v2.1.7

Setup Method

PHP

Operating System

Linux (Ubuntu, CentOS,...)

Client details

No response

sinky avatar May 26 '25 10:05 sinky