(
owner: Owner,
entries: readonly { readonly collection: string; readonly key: string }[],
)
| 1337 | }); |
| 1338 | |
| 1339 | const removeManyImpl = ( |
| 1340 | owner: Owner, |
| 1341 | entries: readonly { readonly collection: string; readonly key: string }[], |
| 1342 | ) => |
| 1343 | Effect.gen(function* () { |
| 1344 | const os = ownerSubject(owner); |
| 1345 | if (!os) { |
| 1346 | return yield* new StorageError({ |
| 1347 | message: `Cannot delete plugin storage for owner "user": executor has no subject.`, |
| 1348 | cause: undefined, |
| 1349 | }); |
| 1350 | } |
| 1351 | yield* deleteManyImpl(owner, os.subject, entries); |
| 1352 | }); |
| 1353 | |
| 1354 | const queryCollection = <TDefinition extends PluginStorageCollectionDefinition>( |
| 1355 | definition: TDefinition, |
no test coverage detected