Changes
This commit is contained in:
@@ -104,7 +104,7 @@ export const useFunctions = () => {
|
|||||||
const useSendTelegramNotification = async (message) => {
|
const useSendTelegramNotification = async (message) => {
|
||||||
const {data:{session:{access_token}}} = await supabase.auth.getSession()
|
const {data:{session:{access_token}}} = await supabase.auth.getSession()
|
||||||
|
|
||||||
const {data} = await axios({
|
const {data,error} = await axios({
|
||||||
method: "POST",
|
method: "POST",
|
||||||
url: `${baseURL}/functions/sendtelegramnotification`,
|
url: `${baseURL}/functions/sendtelegramnotification`,
|
||||||
data: {
|
data: {
|
||||||
@@ -114,6 +114,12 @@ export const useFunctions = () => {
|
|||||||
Authorization: `Bearer ${access_token}`
|
Authorization: `Bearer ${access_token}`
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if(error){
|
||||||
|
|
||||||
|
} else {
|
||||||
|
return true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const useBankingCheckInstitutions = async (bic) => {
|
const useBankingCheckInstitutions = async (bic) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user