(owner: Owner, collection: string, key: string)
| 1602 | }); |
| 1603 | |
| 1604 | const removeImpl = (owner: Owner, collection: string, key: string) => |
| 1605 | Effect.gen(function* () { |
| 1606 | const os = ownerSubject(owner); |
| 1607 | if (!os) { |
| 1608 | return yield* new StorageError({ |
| 1609 | message: `Cannot delete plugin storage for owner "user": executor has no subject.`, |
| 1610 | cause: undefined, |
| 1611 | }); |
| 1612 | } |
| 1613 | yield* input.core.deleteMany("plugin_storage", { |
| 1614 | where: whereOwner(owner, collection, key), |
| 1615 | }); |
| 1616 | }); |
| 1617 | |
| 1618 | const keysByCollection = ( |
| 1619 | entries: readonly { readonly collection: string; readonly key: string }[], |
no test coverage detected