mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 20:29:17 +00:00
🔈 start adding send audio support to frontend
This commit is contained in:
@@ -20,7 +20,7 @@ const app = express();
|
||||
|
||||
const fileStorage = multer.diskStorage({
|
||||
destination: (req, file, cb) => {
|
||||
cb(null, "public");
|
||||
cb(null, path.resolve(__dirname, "public"));
|
||||
},
|
||||
filename: (req, file, cb) => {
|
||||
cb(null, new Date().getTime() + "-" + file.originalname.replace(/\s/g, ""));
|
||||
@@ -40,9 +40,10 @@ app.use("/auth", AuthRoutes);
|
||||
app.use(async (err, req, res, next) => {
|
||||
if (process.env.NODE_ENV === "development") {
|
||||
const errors = await new Youch(err, req).toJSON();
|
||||
console.log(err);
|
||||
return res.status(500).json(errors);
|
||||
}
|
||||
|
||||
console.log(err);
|
||||
return res.status(500).json({ error: "Internal server error" });
|
||||
});
|
||||
|
||||
|
||||
BIN
backend/src/public/1594126363126.ogg
Normal file
BIN
backend/src/public/1594126363126.ogg
Normal file
Binary file not shown.
23
backend/src/public/1594127076117-deployeconowhats.txt
Normal file
23
backend/src/public/1594127076117-deployeconowhats.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
--- vm produção
|
||||
|
||||
MariaDB: root/nodecomplete
|
||||
MariaDB: botter / 103economicros
|
||||
dbName: econo_whatsbot
|
||||
|
||||
Libs necessárias para o Puppter no linux:
|
||||
sudo apt-get install -y libgbm-dev wget unzip fontconfig locales gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils
|
||||
|
||||
|
||||
-- configuração wsl2
|
||||
|
||||
https://docs.microsoft.com/pt-br/windows/wsl/wsl2-kernel
|
||||
|
||||
wsl --set-default-version 2
|
||||
|
||||
docker run --name whats_database -e MYSQL_ROOT_PASSWORD=103economicros --restart always -p 3306:3306 -d mariadb:latest
|
||||
docker exec -it whats_database bash
|
||||
|
||||
CREATE DATABASE econo_whatsbot;
|
||||
ALTER DATABASE econo_whatsbot CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
|
||||
CREATE USER 'botter'@'%' IDENTIFIED BY 'botter';
|
||||
GRANT ALL PRIVILEGES ON econo_whatsbot.* TO 'botter'@'%';
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
backend/src/public/1594127591213-1594126363126.ogg
Normal file
BIN
backend/src/public/1594127591213-1594126363126.ogg
Normal file
Binary file not shown.
BIN
backend/src/public/1594127894843-Untitled1.mp3
Normal file
BIN
backend/src/public/1594127894843-Untitled1.mp3
Normal file
Binary file not shown.
BIN
backend/src/public/1594128268424-testeeeeee.mp3
Normal file
BIN
backend/src/public/1594128268424-testeeeeee.mp3
Normal file
Binary file not shown.
BIN
backend/src/public/1594128876147-teste2.wav
Normal file
BIN
backend/src/public/1594128876147-teste2.wav
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user