mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-09 23:48:36 +01:00
update
This commit is contained in:
1
consumer/.gitignore
vendored
1
consumer/.gitignore
vendored
@@ -5,5 +5,6 @@ ecosystem.config.cjs
|
|||||||
ecosystem.config.js
|
ecosystem.config.js
|
||||||
|
|
||||||
scripts/start_dev.js
|
scripts/start_dev.js
|
||||||
|
scripts/start_dev_prod.js
|
||||||
dist
|
dist
|
||||||
src/shared
|
src/shared
|
||||||
@@ -18,6 +18,7 @@
|
|||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "node scripts/start_dev.js",
|
"dev": "node scripts/start_dev.js",
|
||||||
|
"dev_prod": "node scripts/start_dev_prod.js",
|
||||||
"compile": "tsc",
|
"compile": "tsc",
|
||||||
"build": "npm run compile && npm run create_db",
|
"build": "npm run compile && npm run create_db",
|
||||||
"create_db": "cd scripts && ts-node create_database.ts",
|
"create_db": "cd scripts && ts-node create_database.ts",
|
||||||
|
|||||||
@@ -52,10 +52,10 @@ async function processStreamEntry(data: Record<string, string>) {
|
|||||||
const { pid, sessionHash } = data;
|
const { pid, sessionHash } = data;
|
||||||
|
|
||||||
const project = await ProjectModel.exists({ _id: pid });
|
const project = await ProjectModel.exists({ _id: pid });
|
||||||
if (!project) return console.log('No project');
|
if (!project) return;
|
||||||
|
|
||||||
const canLog = await checkLimits(pid);
|
const canLog = await checkLimits(pid);
|
||||||
if (!canLog) return console.log('No limits');
|
if (!canLog) return;
|
||||||
|
|
||||||
if (eventType === 'event') {
|
if (eventType === 'event') {
|
||||||
await process_event(data, sessionHash);
|
await process_event(data, sessionHash);
|
||||||
|
|||||||
Reference in New Issue
Block a user