fix test function III
This commit is contained in:
@@ -10,13 +10,13 @@ exports.handler = async function(event, context) {
|
|||||||
.then((response) => {
|
.then((response) => {
|
||||||
return {
|
return {
|
||||||
statusCode: 200,
|
statusCode: 200,
|
||||||
body: response.data,
|
body: JSON.stringify(response.data),
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
return {
|
return {
|
||||||
statusCode: 500,
|
statusCode: 500,
|
||||||
body: 'discord api shat itself brb',
|
body: JSON.stringify({ errorMsg: 'discord api shat itself brb' }),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user