style: remove WhatsApp link from client phone number
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m24s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m24s
This commit is contained in:
15
test-fetch.js
Normal file
15
test-fetch.js
Normal file
@@ -0,0 +1,15 @@
|
||||
async function run() {
|
||||
const loginRes = await fetch('http://localhost:3004/api/login', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ email: 'admin@admin.com', password: 'admin123' })
|
||||
});
|
||||
const { token } = await loginRes.json();
|
||||
const dataRes = await fetch('http://localhost:3004/api/data?start=2020-01-01&end=2030-01-01', {
|
||||
headers: { 'Authorization': `Bearer ${token}` }
|
||||
});
|
||||
const data = await dataRes.json();
|
||||
const fabricio = data.find(d => d.Nome_Cliente.includes('Teste Hoje'));
|
||||
console.log(fabricio);
|
||||
}
|
||||
run();
|
||||
Reference in New Issue
Block a user