(owner: Owner, collection: string, key: string)
| 1235 | }); |
| 1236 | |
| 1237 | const removeImpl = (owner: Owner, collection: string, key: string) => |
| 1238 | Effect.gen(function* () { |
| 1239 | const os = ownerSubject(owner); |
| 1240 | if (!os) { |
| 1241 | return yield* new StorageError({ |
| 1242 | message: `Cannot delete plugin storage for owner "user": executor has no subject.`, |
| 1243 | cause: undefined, |
| 1244 | }); |
| 1245 | } |
| 1246 | yield* input.core.deleteMany("plugin_storage", { |
| 1247 | where: whereOwner(owner, collection, key), |
| 1248 | }); |
| 1249 | }); |
| 1250 | |
| 1251 | const keysByCollection = ( |
| 1252 | entries: readonly { readonly collection: string; readonly key: string }[], |
no test coverage detected