MCPcopy Index your code
hub / github.com/Flagsmith/flagsmith / createSampleUser

Function createSampleUser

frontend/common/stores/organisation-store.js:18–29  ·  view source on GitHub ↗
(res, envName, project)

Source from the content-addressed store, hash-verified

16 createProject: (name) => {
17 store.saving()
18 const createSampleUser = (res, envName, project) =>
19 data
20 .post(
21 `${Project.api}environments/${
22 res.api_key
23 }/${Utils.getIdentitiesEndpoint(project)}/`,
24 {
25 environment: res.id,
26 identifier: `${envName}_user_123456`,
27 },
28 )
29 .then(() => res)
30 if (
31 AccountStore.model.organisations.length === 1 &&
32 (!store.model.projects || !store.model.projects.length)

Callers 1

Calls 1

postMethod · 0.45

Tested by

no test coverage detected