fix: fix tests

This commit is contained in:
Marcel S. Henselin 2026-02-10 13:12:11 +01:00
parent 4991897eca
commit c5bdcaec6a
5 changed files with 179 additions and 177 deletions

View file

@ -111,7 +111,7 @@ func mapResourceFields(userResp *postgresflex.GetUserResponse, model *resourceMo
user := userResp
var userId int64
if model.UserId.ValueInt64() != 0 {
if !model.UserId.IsNull() && !model.UserId.IsUnknown() && model.UserId.ValueInt64() != 0 {
userId = model.UserId.ValueInt64()
} else if user.Id != nil {
userId = *user.Id