general fixes

This commit is contained in:
Patrick 2024-10-09 20:20:04 +02:00
parent 281d786c19
commit 885b838704
7 changed files with 66 additions and 23 deletions

View file

@ -13,7 +13,8 @@ export const getWeather = async (data: object): Promise<string> => {
const status = response.data.status;
const success = response.data.response;
postMessage({ status, success });
return success;
console.log(JSON.stringify(success))
return JSON.stringify(success);
} catch (error) {
postMessage({ status: 500, success: false });
console.log(error)