Skip to content

Commit

Permalink
fix: only update time on updated links (timeout on button was never a…
Browse files Browse the repository at this point in the history
…ctivated)
  • Loading branch information
olzzon committed Feb 28, 2024
1 parent dfdcd57 commit 4471960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/utils/handleSourceLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export const updateRecievedSourceLink = (
const updatedSources = sources.map((source) => {
if (id && source.id === id) {
source.link = recievedSourceLinks;
source.linkUpdateTime = Date.now();
}
source.linkUpdateTime = Date.now();
return source;
});
return updatedSources;
Expand Down

0 comments on commit 4471960

Please sign in to comment.