Skip to content

Commit 7ab6bbe

Browse files
committed
fix: extract externalId corrently while seeding user
1 parent e6a3fe3 commit 7ab6bbe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/data-seeder/src/users.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,12 @@ export async function seedUsers(token: string) {
250250
continue
251251
}
252252

253+
const externalId = officeIdentifier.split('_').at(-1)
254+
253255
const url = new URL('events', env.GATEWAY_HOST).toString()
254256
const client = createClient(url, `Bearer ${token}`)
255257
const [primaryOffice] = await client.locations.list.query({
256-
externalId: officeIdentifier
258+
externalId
257259
})
258260

259261
const userPayload = {

0 commit comments

Comments
 (0)