feat: update name assignment to use GetName method in mapper

This commit is contained in:
Andre_Harms 2026-02-05 16:08:05 +01:00
parent 6802b64faf
commit bac8ebe236

View file

@ -34,7 +34,7 @@ func mapFields(
model.Id = types.Int64Value(databaseId)
model.DatabaseID = types.Int64Value(databaseId)
model.Name = types.StringPointerValue(source.Name)
model.Name = types.StringValue(source.GetName())
model.Owner = types.StringPointerValue(cleanString(source.Owner))
model.Region = types.StringValue(region)
@ -64,7 +64,7 @@ func mapResourceFields(source *postgresflexalpha.ListDatabase, model *ResourceMo
model.Id = types.Int64Value(databaseId)
model.DatabaseID = types.Int64Value(databaseId)
model.Name = types.StringPointerValue(source.Name)
model.Name = types.StringValue(source.GetName())
model.Owner = types.StringPointerValue(cleanString(source.Owner))
return nil
}