(
owner: Owner,
entries: readonly { readonly collection: string; readonly key: string }[],
)
| 1112 | }); |
| 1113 | |
| 1114 | const removeManyImpl = ( |
| 1115 | owner: Owner, |
| 1116 | entries: readonly { readonly collection: string; readonly key: string }[], |
| 1117 | ) => |
| 1118 | Effect.gen(function* () { |
| 1119 | const os = ownerSubject(owner); |
| 1120 | if (!os) { |
| 1121 | return yield* new StorageError({ |
| 1122 | message: `Cannot delete plugin storage for owner "user": executor has no subject.`, |
| 1123 | cause: undefined, |
| 1124 | }); |
| 1125 | } |
| 1126 | yield* deleteManyImpl(owner, os.subject, entries); |
| 1127 | }); |
| 1128 | |
| 1129 | const queryCollection = <TDefinition extends PluginStorageCollectionDefinition>( |
| 1130 | definition: TDefinition, |
no test coverage detected