(
input: RemoveToolPolicyInput,
)
| 6145 | ); |
| 6146 | |
| 6147 | const policiesRemove = ( |
| 6148 | input: RemoveToolPolicyInput, |
| 6149 | ): Effect.Effect<void, OrgWriteDeniedError | StorageFailure> => |
| 6150 | transaction( |
| 6151 | Effect.gen(function* () { |
| 6152 | yield* guardOrgWrite(input.owner); |
| 6153 | const where = (b: AnyCb) => b.and(byOwner(input.owner)(b), b("id", "=", input.id)); |
| 6154 | yield* core.deleteMany("tool_policy", { where }); |
| 6155 | }), |
| 6156 | ); |
| 6157 | |
| 6158 | const policiesResolve = ( |
| 6159 | address: ToolAddress, |
no test coverage detected