Skip to content

Commit 227bd34

Browse files
committed
fix: AppUserID is optional in BotBaseData
1 parent 535a66b commit 227bd34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

botsfwmodels/base_data.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ type BotBaseData struct {
2323

2424
// Validate returns error if data is invalid
2525
func (e *BotBaseData) Validate() error {
26-
if e.AppUserID == "" {
27-
return validation.NewErrRecordIsMissingRequiredField("AppUserID")
28-
}
26+
//if e.AppUserID == "" {
27+
// return validation.NewErrRecordIsMissingRequiredField("appUserID")
28+
//}
2929
if e.DtCreated.IsZero() {
30-
return validation.NewErrRecordIsMissingRequiredField("DtCreated")
30+
return validation.NewErrRecordIsMissingRequiredField("dtCreated")
3131
}
3232
if e.DtUpdated.IsZero() {
3333
return validation.NewErrRecordIsMissingRequiredField("dtUpdated")

0 commit comments

Comments
 (0)