👽 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/nexus/pkg/nex/cruda"
@@ -127,8 +126,8 @@ func createStory(c *fiber.Ctx) error {
} else {
_ = authkit.AddEventExt(
gap.Nx,
"posts.new",
strconv.Itoa(int(item.ID)),
"posts.edit",
map[string]interface{}{"post": item},
c,
)
}
@@ -236,7 +235,7 @@ func editStory(c *fiber.Ctx) error {
_ = authkit.AddEventExt(
gap.Nx,
"posts.edit",
strconv.Itoa(int(item.ID)),
map[string]interface{}{"post": item},
c,
)
}