Skip to content

Commit

Permalink
fix: ory renaming + env core import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dolcalmi committed Feb 22, 2024
1 parent f4d3e67 commit d2d2d84
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 87 deletions.
2 changes: 1 addition & 1 deletion core/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"@opentelemetry/sdk-trace-node": "^1.21.0",
"@opentelemetry/semantic-conventions": "^1.21.0",
"@ory/client": "^1.6.2",
"@t3-oss/env-core": "^0.9.2",
"@t3-oss/env-core": "0.9.1",
"ajv": "^8.12.0",
"axios": "^1.6.7",
"basic-auth": "^2.0.1",
Expand Down
6 changes: 3 additions & 3 deletions core/api/src/services/kratos/tests-but-not-prod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IdentityState } from "@ory/client"
import { IdentityStateEnum } from "@ory/client"

import { UnknownKratosError } from "./errors"
import { kratosAdmin } from "./private"
Expand All @@ -19,7 +19,7 @@ export const activateUser = async (kratosUserId: UserId): Promise<void | KratosE
id: kratosUserId,
updateIdentityBody: {
...identity,
state: IdentityState.Active,
state: IdentityStateEnum.Active,
},
})
} catch (err) {
Expand All @@ -44,7 +44,7 @@ export const deactivateUser = async (
id: kratosUserId,
updateIdentityBody: {
...identity,
state: IdentityState.Inactive,
state: IdentityStateEnum.Inactive,
},
})

Expand Down
Loading

0 comments on commit d2d2d84

Please sign in to comment.