Oprava stahování HTML restaurací

This commit is contained in:
mates committed 2023-08-07 09:40:49 +02:00
1 parent 0b8f00fa49
commit ce41c14446
1 file changed
+1 -3
+1 -3
View File
@@ -53,9 +53,7 @@ const getDayOfWeekIndex = (date: Date) => {
* @returns stažené HTML
*/
const getHtml = async (url: string): Promise<any> => {
await axios.get(url).then(res => res.data).then(content => {
return content
});
return await axios.get(url).then(res => res.data).then(content => content);
}
/**