1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-18 01:18:23 +02:00

chore: remove console.log and reuse package scripts (#10025)

Make `start:dev` re-use `dev:backend`, the only difference is start:dev
runs a clean before running
This commit is contained in:
Gastón Fournier 2025-05-23 12:24:03 +02:00 committed by GitHub
parent 9fca29f254
commit 27781fea47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 4 deletions

View File

@ -46,7 +46,7 @@
"dev:frontend:cloud": "UNLEASH_BASE_PATH=/demo/ yarn run dev:frontend",
"dev": "concurrently \"yarn:dev:backend\" \"yarn:dev:frontend\"",
"prepare:backend": "concurrently \"yarn:copy-templates\" \"yarn:build:backend\"",
"start:dev": "yarn run clean && TZ=UTC NODE_ENV=development tsc-watch --onSuccess \"node dist/server-dev.js\"",
"start:dev": "yarn run clean && yarn dev:backend",
"db-migrate": "db-migrate --migrations-dir ./src/migrations",
"lint": "biome check .",
"lint:fix": "biome check . --write",

View File

@ -94,7 +94,7 @@ export default class TeamsAddon extends Addon {
headers: { 'Content-Type': 'application/json', ...extraHeaders },
body: JSON.stringify(body),
};
console.log(`${url} Request options: ${JSON.stringify(requestOpts)}`);
const res = await this.fetchRetry(url, requestOpts);
this.logger.info(`Handled event "${event.type}".`);

View File

@ -180,8 +180,6 @@ export default class ClientMetricsController extends Controller {
try {
const { body } = req;
console.log(body);
// Use Joi validation for custom metrics
await customMetricsSchema.validateAsync(body);