restructure

This commit is contained in:
Emily
2024-11-16 01:14:05 +01:00
parent 41037a01a1
commit 070560c1e2
42 changed files with 75 additions and 88 deletions

View File

@@ -1,9 +1,5 @@
{
"dependencies": {
"@getbrevo/brevo": "^2.2.0",
"dayjs": "^1.11.13",
"mongoose": "^8.3.2"
},
"dependencies": {},
"devDependencies": {
"@types/node": "^20.12.13",
"ts-node": "^10.9.2",
@@ -15,11 +11,11 @@
"scripts": {
"dev": "node scripts/start_dev.js",
"compile": "tsc",
"build": "node ../scripts/build.js",
"build_all": "npm run compile && npm run build"
"build_project": "node ../scripts/build.js",
"build": "npm run compile && npm run build"
},
"keywords": [],
"author": "Emily",
"license": "MIT",
"description": "."
"description": ""
}

View File

@@ -6,7 +6,7 @@ import { EventModel } from "@schema/metrics/EventSchema";
import { VisitModel } from '@schema/metrics/VisitSchema'
import * as url from 'url';
import { ProjectModel } from "@schema/ProjectSchema";
import { ProjectModel } from "@schema/project/ProjectSchema";
import { getAggregation } from "./Aggregations";
type TAvgInput = { _id: string, count: number }

View File

@@ -4,7 +4,7 @@ import { requireEnv } from '@utils/requireEnv'
import EmailService from "@services/EmailService";
import { ProjectModel } from "@schema/ProjectSchema";
import { ProjectModel } from "@schema/project/ProjectSchema";
import { UserModel } from "@schema/UserSchema";
EmailService.init(requireEnv('BREVO_API_KEY'));