Update top-langs.js

This commit is contained in:
Zohan Subhash
2023-01-16 15:23:20 +05:30
committed by GitHub
parent 2a1d255e45
commit 642d63d4f0
+2 -2
View File
@@ -29,8 +29,8 @@ export default async (req, res) => {
try {
let topLangs = []
if (req.query.top_langs) {
const split = req.query.top_langs.split(";");
if (req.query.langs) {
const split = req.query.langs.split(";");
split.forEach(lang => {
topLangs.push(JSON.parse(decodeURIComponent(lang)))
});