(owner: Owner, collection: string, key: string)
| 1616 | }); |
| 1617 | |
| 1618 | const removeImpl = (owner: Owner, collection: string, key: string) => |
| 1619 | Effect.gen(function* () { |
| 1620 | const os = ownerSubject(owner); |
| 1621 | if (!os) { |
| 1622 | return yield* new StorageError({ |
| 1623 | message: `Cannot delete plugin storage for owner "user": executor has no subject.`, |
| 1624 | cause: undefined, |
| 1625 | }); |
| 1626 | } |
| 1627 | yield* input.core.deleteMany("plugin_storage", { |
| 1628 | where: whereOwner(owner, collection, key), |
| 1629 | }); |
| 1630 | }); |
| 1631 | |
| 1632 | const keysByCollection = ( |
| 1633 | entries: readonly { readonly collection: string; readonly key: string }[], |
no test coverage detected