mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-03 10:19:14 +02:00
fix:#75 added hash function to dbEventService
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
"github.com/pocketbase/pocketbase/tools/types"
|
||||
"htwkalender/data-manager/model"
|
||||
"htwkalender/data-manager/service/functions"
|
||||
"log/slog"
|
||||
"time"
|
||||
|
||||
@@ -197,7 +198,7 @@ func NewEvent(collection *core.Collection, event model.Event) (*Event, error) {
|
||||
ev.SetCompulsory(event.Compulsory)
|
||||
|
||||
if event.UUID == "" {
|
||||
event.UUID = uuid.NewString()
|
||||
event.UUID = functions.GenerateUUID(event)
|
||||
}
|
||||
ev.SetUUID(event.UUID)
|
||||
return ev, nil
|
||||
|
Reference in New Issue
Block a user