fix(GBMinService): await token.toJwt() for proper JWT generation
All checks were successful
GBCI / build (push) Successful in 31s
All checks were successful
GBCI / build (push) Successful in 31s
This commit is contained in:
parent
7f7397b192
commit
b7f9c07faf
2 changed files with 3 additions and 4 deletions
|
|
@ -27,16 +27,15 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "[General Bots Deployer] Copying files to deploy location..."
|
echo "[General Bots Deployer] Copying files to deploy location..."
|
||||||
sudo rm -rf /opt/gbo/bin/BotServer/dist
|
sudo rm -rf /opt/gbo/bin/BotServer/dist
|
||||||
|
|
||||||
sudo cp -r ./* /opt/gbo/bin/BotServer
|
sudo cp -r ./* /opt/gbo/bin/BotServer
|
||||||
sudo cp /opt/gbo/conf.d/bot/.env /opt/gbo/bin/BotServer
|
sudo cp /opt/gbo/conf.d/bot/.env /opt/gbo/bin/BotServer
|
||||||
|
|
||||||
- name: Install production dependencies in deployment location
|
- name: Install production dependencies in deployment location
|
||||||
run: |
|
run: |
|
||||||
echo "[General Bots Deployer] Building BotServer..."
|
echo "[General Bots Deployer] Building BotServer..."
|
||||||
rm -rf /opt/gbo/bin/BotServer/node_modules
|
# rm -rf /opt/gbo/bin/BotServer/node_modules
|
||||||
cd /opt/gbo/bin/BotServer
|
cd /opt/gbo/bin/BotServer
|
||||||
sudo npm ci --production
|
# sudo npm ci --production
|
||||||
npm run build-server
|
npm run build-server
|
||||||
# npm run build-gbui
|
# npm run build-gbui
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -605,7 +605,7 @@ export class GBMinService {
|
||||||
});
|
});
|
||||||
|
|
||||||
// 6. Return JWT
|
// 6. Return JWT
|
||||||
const jwt = token.toJwt();
|
const jwt = await token.toJwt();
|
||||||
res.json({ token: jwt });
|
res.json({ token: jwt });
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue