Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-Santana-j committed May 26, 2024
1 parent 2aced6e commit df3bd90
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
6 changes: 1 addition & 5 deletions Discord/discordIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,7 @@ module.exports.sendProductPayment = async (params, id, type) => {
}
}

} else {
} else {
refound()
return
}
Expand All @@ -1018,13 +1018,9 @@ module.exports.sendProductPayment = async (params, id, type) => {
await db.update('servers', serverData.id, {
products: serverData.products
})


} catch (error) {
console.log(error);
}


});
const dataHoraAtual = new Date();
const dataHoraFormatada = `${String(dataHoraAtual.getDate()).padStart(2, '0')}/${String(dataHoraAtual.getMonth() + 1).padStart(2, '0')}/${dataHoraAtual.getFullYear()} ${String(dataHoraAtual.getHours()).padStart(2, '0')}:${String(dataHoraAtual.getMinutes()).padStart(2, '0')}:${String(dataHoraAtual.getSeconds()).padStart(2, '0')}`;
Expand Down
1 change: 1 addition & 0 deletions handler/commands/util/ticket.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
description: '12',
type: 1,
options: [],
return:true,
run: async(client,interaction)=>{
require('../../../Discord/createTicketMensage')(client,interaction.channelId,interaction.guildId)
}
Expand Down
1 change: 1 addition & 0 deletions public/js/sales.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ document.addEventListener('click', async (event) => {
reader.onload = async function (event) {
const conteudo = event.target.result;
let linhas = conteudo.split('\n').map(linha => linha.replace(/\r/g, '').trim()).filter(linha => linha.length > 0);
console.log(linhas);
let productID = document.getElementById('produtos-config-content').getAttribute('data-product')
let productData = await fetch('/estoque/txt', {
method: 'POST',
Expand Down
4 changes: 2 additions & 2 deletions views/reusable/header.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
</div>
</li>
</a>
<a href="/server/ticket/<%= server.id %>" class="header-nav-list-link <%= index == 5 ? 'fixedHover' : '' %>">
<!-- <a href="/server/ticket/<%#= server.id %>" class="header-nav-list-link <%#= index == 5 ? 'fixedHover' : '' %>">
<li class="header-nav-list-item">
<div class="list-item-icon flex-center">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" viewBox="0 0 510 510" style="enable-background:new 0 0 512 512" xml:space="preserve" class=""><g><path d="M488.468 345.72C501.347 340.733 510 328.041 510 314.136v-64.334c0-19.068-15.513-34.582-34.582-34.582h-3.531c10.468-13.552 9.502-33.148-2.921-45.572l-45.491-45.491c-9.831-9.831-24.924-12.688-37.558-7.108-6.786 2.998-14.871 1.485-20.118-3.762-5.247-5.248-6.76-13.333-3.764-20.118 5.581-12.633 2.725-27.727-7.108-37.559l-45.49-45.491c-13.482-13.481-35.422-13.483-48.906 0L55.431 215.22H34.582C15.513 215.22 0 230.734 0 249.802v64.334c0 13.905 8.653 26.598 21.532 31.583 6.917 2.679 11.565 9.465 11.565 16.886s-4.648 14.208-11.565 16.886C8.653 384.48 0 397.173 0 411.076v64.333c0 19.068 15.513 34.582 34.582 34.582h440.836c19.069 0 34.582-15.514 34.582-34.582v-64.333c0-13.903-8.652-26.596-21.531-31.585-6.918-2.679-11.566-9.465-11.566-16.886s4.648-14.207 11.565-16.885zM281.744 31.334a4.587 4.587 0 0 1 6.48-.001l45.49 45.491c1.139 1.139 1.492 2.836.878 4.225-7.963 18.031-3.947 39.512 9.993 53.451 13.94 13.94 35.421 17.955 53.453 9.992 1.387-.612 3.085-.26 4.224.879l45.49 45.49a4.587 4.587 0 0 1 .001 6.48l-17.88 17.879h-78.162L224.784 88.293zm-78.173 78.172L309.286 215.22H97.856zM30 475.409v-64.333c0-1.611.951-3.061 2.366-3.609 18.381-7.119 30.73-25.147 30.73-44.862s-12.35-37.743-30.732-44.862c-1.414-.547-2.364-1.997-2.364-3.607v-64.334a4.588 4.588 0 0 1 4.582-4.582H375v234.771H34.582A4.587 4.587 0 0 1 30 475.409zm450-161.273c0 1.61-.95 3.06-2.365 3.608-18.381 7.119-30.732 25.147-30.732 44.862s12.35 37.743 30.731 44.861c1.415.548 2.366 1.999 2.366 3.609v64.333a4.588 4.588 0 0 1-4.582 4.582H405V245.22h70.418a4.588 4.588 0 0 1 4.582 4.582z" opacity="1" class=""></path><path d="M105 284.991h225v30H105zM105 344.991h225v30H105zM105 404.991h225v30H105z" opacity="1" ></path></g></svg>
Expand All @@ -211,7 +211,7 @@
Tickets
</div>
</li>
</a>
</a> -->
<a href="/server/config/<%= server.id %>" class="header-nav-list-link <%= index == 6 ? 'fixedHover' : '' %>">
<li class="header-nav-list-item">
<div class="list-item-icon flex-center">
Expand Down

0 comments on commit df3bd90

Please sign in to comment.