Skip to content

Commit

Permalink
🐛 Fix year type
Browse files Browse the repository at this point in the history
  • Loading branch information
iqfareez authored Jan 1, 2024
1 parent 282c07e commit 1a3a799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/v2/solat/[zone].ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
// build response
let response = {};
response['zone'] = zone.toString().toUpperCase()
response['year'] = fetch_for_year;
response['year'] = parseInt(fetch_for_year);
response['month'] = fetch_for_month;

// record the last update time
Expand Down

0 comments on commit 1a3a799

Please sign in to comment.