(
input: RemoveToolPolicyInput,
)
| 6053 | ); |
| 6054 | |
| 6055 | const policiesRemove = ( |
| 6056 | input: RemoveToolPolicyInput, |
| 6057 | ): Effect.Effect<void, OrgWriteDeniedError | StorageFailure> => |
| 6058 | transaction( |
| 6059 | Effect.gen(function* () { |
| 6060 | yield* guardOrgWrite(input.owner); |
| 6061 | const where = (b: AnyCb) => b.and(byOwner(input.owner)(b), b("id", "=", input.id)); |
| 6062 | yield* core.deleteMany("tool_policy", { where }); |
| 6063 | }), |
| 6064 | ); |
| 6065 | |
| 6066 | const policiesResolve = ( |
| 6067 | address: ToolAddress, |
no test coverage detected