MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / deleteObject

Function deleteObject

packages/plugins/workos-vault/src/sdk/testing.ts:171–178  ·  view source on GitHub ↗
(opts: { readonly id: string })

Source from the content-addressed store, hash-verified

169 });
170
171 const deleteObject = (opts: { readonly id: string }): Effect.Effect<void, TestWorkOSVaultError> =>
172 Effect.gen(function* () {
173 const entry = [...objects.entries()].find(([, object]) => object.id === opts.id);
174 if (!entry) {
175 return yield* notFound(`Object "${opts.id}" not found`);
176 }
177 objects.delete(entry[0]);
178 });
179
180 const wrap = <A>(
181 operation: string,

Callers 1

Calls 2

notFoundFunction · 0.70
deleteMethod · 0.65

Tested by

no test coverage detected