minor bug fix

This commit is contained in:
daniel31x13
2024-06-27 22:23:47 -04:00
parent a71f42af6e
commit 39422e54df
3 changed files with 17 additions and 2 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ export default async function postLink(
},
});
if (numberOfLinksTheUserHas + 1 > MAX_LINKS_PER_USER)
if (numberOfLinksTheUserHas > MAX_LINKS_PER_USER)
return {
response: `Error: Each user can only have a maximum of ${MAX_LINKS_PER_USER} Links.`,
status: 400,