Преглед на файлове

fix: set /translations error matches = null on 404

Sven преди 1 година
родител
ревизия
3ac6791639
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/routes/translations.ts

+ 1 - 1
src/routes/translations.ts

@@ -25,7 +25,7 @@ export function initTranslationsRoutes(router: Router) {
         return respond(res, "clientError", "Couldn't find translations for this song", format, 0);
 
       if(translations === undefined)
-        return respond(res, "clientError", "Couldn't find a song with the provided ID", format, 0);
+        return respond(res, "clientError", "Couldn't find a song with the provided ID", format, undefined);
 
       return respond(res, "success", { translations }, format, translations.length);
     }