Skip to content

Commit d1b8ca9

Browse files
committed
Fix EmployeeIDs
1 parent d0ba6f1 commit d1b8ca9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/bsql/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ type UserTraitMapping struct {
160160
LastLogin string `yaml:"last_login" json:"last_login"`
161161

162162
// EmployeeIds stores the employee identifier(s) for the user.
163-
EmployeeID []string `yaml:"employee_ids" json:"employee_ids"`
163+
EmployeeIDs []string `yaml:"employee_ids" json:"employee_ids"`
164164

165165
// ManagerID is the identifier of the user's manager.
166166
ManagerID string `yaml:"manager_id" json:"manager_id"`

pkg/bsql/resources.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ func (s *SQLSyncer) mapUserTrait(ctx context.Context, r *v2.Resource, rowMap map
164164
}
165165

166166
// Employee ID
167-
if len(mappings.EmployeeID) > 0 {
167+
if len(mappings.EmployeeIDs) > 0 {
168168
var employeeIDs []string
169-
for _, idMapping := range mappings.EmployeeID {
169+
for _, idMapping := range mappings.EmployeeIDs {
170170
employeeID, err := s.env.EvaluateString(ctx, idMapping, inputs)
171171
if err != nil {
172172
return err

0 commit comments

Comments
 (0)