👽 Upgrade to new events audit system

This commit is contained in:
2025-03-15 17:18:35 +08:00
parent ce257f83b8
commit 1c927122c2
8 changed files with 66 additions and 69 deletions

View File

@@ -2,7 +2,6 @@ package api
import (
"fmt"
"strconv"
"time"
"git.solsynth.dev/hypernet/interactive/pkg/internal/database"
@@ -106,7 +105,7 @@ func createVideo(c *fiber.Ctx) error {
_ = authkit.AddEventExt(
gap.Nx,
"posts.new",
strconv.Itoa(int(item.ID)),
map[string]any{"post": item},
c,
)
}
@@ -212,7 +211,7 @@ func editVideo(c *fiber.Ctx) error {
_ = authkit.AddEventExt(
gap.Nx,
"posts.edit",
strconv.Itoa(int(item.ID)),
map[string]any{"post": item},
c,
)
}