Skip to content

Commit

Permalink
FIX: Handle empty results on check
Browse files Browse the repository at this point in the history
  • Loading branch information
domoscargin committed Jan 8, 2025
1 parent b4c518c commit 30a3c44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion helpers/database.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ export class RepoDB {
WHERE repoOwner = ? AND repoName = ?
`)
const result = query.get(repoOwner, repoName)
return result && result.lastUpdated === lastUpdated
if (result) {
return result.lastUpdated === lastUpdated
}
return false
}

insertRepoData (repo) {
Expand Down

0 comments on commit 30a3c44

Please sign in to comment.