Skip to content

Commit

Permalink
Add missing function logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tedspare committed Oct 7, 2022
1 parent df77209 commit 778530f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pages/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ export default async (req: NextApiRequest, res: NextApiResponse) => {
);

if (!sync?.LinearTeam || !sync?.GitHubRepo) {
console.log("Could not find synced repo or team.");
console.log("Could not find ticket's corresponding repo.");

return res.status(404).send({
success: false,
message: "Could not find synced repo or team."
message: "Could not find ticket's corresponding repo."
});
}

Expand Down Expand Up @@ -796,9 +796,11 @@ export default async (req: NextApiRequest, res: NextApiResponse) => {
});

if (!sync?.LinearTeam || !sync?.GitHubRepo) {
console.log("Could not find issue's corresponding team.");

return res.status(404).send({
success: false,
message: "Could not find synced repo or team."
message: "Could not find issue's corresponding team."
});
}

Expand All @@ -813,7 +815,7 @@ export default async (req: NextApiRequest, res: NextApiResponse) => {
);

if (sig.length !== digest.length || !timingSafeEqual(digest, sig)) {
console.log(`Failed to verify signature for webhook.`);
console.log("Failed to verify signature for webhook.");

return res.status(403).send({
success: false,
Expand Down

0 comments on commit 778530f

Please sign in to comment.