update pricing data

This commit is contained in:
Emily
2025-04-05 16:42:52 +02:00
parent 10d4a9f1bc
commit 72ceb7971d
3 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,6 @@
import { ProjectModel } from "@schema/project/ProjectSchema";
import { ProjectCountModel } from "@schema/project/ProjectsCounts";
import { SessionModel } from "@schema/metrics/SessionSchema";
import { LimitNotifyModel } from "@schema/broker/LimitNotifySchema";
import { AiChatModel } from "@schema/ai/AiChatSchema";
export default defineEventHandler(async event => {
@@ -18,14 +17,12 @@ export default defineEventHandler(async event => {
const projectDeletation = ProjectModel.deleteOne({ _id: project_id });
const countDeletation = ProjectCountModel.deleteMany({ project_id });
const sessionsDeletation = SessionModel.deleteMany({ project_id });
const notifiesDeletation = LimitNotifyModel.deleteMany({ project_id });
const aiChatsDeletation = AiChatModel.deleteMany({ project_id });
const results = await Promise.all([
projectDeletation,
countDeletation,
sessionsDeletation,
notifiesDeletation,
aiChatsDeletation
])