Remove required user_id param when sending messages
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
package util
|
||||
|
||||
import (
|
||||
"blackforestbytes.com/simplecloudnotifier/logic"
|
||||
"fmt"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"blackforestbytes.com/simplecloudnotifier/logic"
|
||||
"git.blackforestbytes.com/BlackForestBytes/goext/langext"
|
||||
"git.blackforestbytes.com/BlackForestBytes/goext/timeext"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/rs/zerolog/log"
|
||||
"gopkg.in/loremipsum.v1"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
// # Generated by https://chat.openai.com/chat
|
||||
@@ -393,7 +394,6 @@ func InitDefaultData(t *testing.T, ws *logic.Application) DefData {
|
||||
for _, mex := range messageExamples {
|
||||
body := gin.H{}
|
||||
body["title"] = mex.Title
|
||||
body["user_id"] = users[mex.User].UID
|
||||
switch mex.Key {
|
||||
case AKEY:
|
||||
body["key"] = users[mex.User].AdminKey
|
||||
|
||||
Reference in New Issue
Block a user