Skip to content

Commit

Permalink
Merge pull request #41 from kentibs/feat/newletter
Browse files Browse the repository at this point in the history
fix: 200 successful status code for getting email subscribers
  • Loading branch information
Tibz-Dankan authored Jan 28, 2024
2 parents 6309255 + 89c0c5d commit 0c34f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/newsLetterController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const getAllNewsLetterSubscribers = asyncHandler(
return next(new AppError("No subscribers found", 404));
}

res.status(201).json({
res.status(200).json({
status: "success",
message: "fetched subscribers",
data: {
Expand Down

0 comments on commit 0c34f26

Please sign in to comment.