(
input: RemoveToolPolicyInput,
)
| 5934 | ); |
| 5935 | |
| 5936 | const policiesRemove = ( |
| 5937 | input: RemoveToolPolicyInput, |
| 5938 | ): Effect.Effect<void, OrgWriteDeniedError | StorageFailure> => |
| 5939 | transaction( |
| 5940 | Effect.gen(function* () { |
| 5941 | yield* guardOrgWrite(input.owner); |
| 5942 | const where = (b: AnyCb) => b.and(byOwner(input.owner)(b), b("id", "=", input.id)); |
| 5943 | yield* core.deleteMany("tool_policy", { where }); |
| 5944 | }), |
| 5945 | ); |
| 5946 | |
| 5947 | const policiesResolve = ( |
| 5948 | address: ToolAddress, |
no test coverage detected