mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
fix ui + sessions + reactivity
This commit is contained in:
@@ -39,7 +39,8 @@ export default defineEventHandler(async event => {
|
||||
await ProjectCountModel.create({
|
||||
project_id: project._id,
|
||||
events: 0,
|
||||
visits: 0
|
||||
visits: 0,
|
||||
sessions: 0
|
||||
});
|
||||
|
||||
await ProjectLimitModel.updateOne({ project_id: project._id }, {
|
||||
@@ -76,7 +77,8 @@ export default defineEventHandler(async event => {
|
||||
await ProjectCountModel.create({
|
||||
project_id: project._id,
|
||||
events: 0,
|
||||
visits: 0
|
||||
visits: 0,
|
||||
sessions: 0
|
||||
});
|
||||
|
||||
return project.toJSON() as TProject;
|
||||
|
||||
Reference in New Issue
Block a user