-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
bugSomething isn't workingSomething isn't working
Description
The identifier of the object is not being properly accessed when a destroy operation is attempted. If you log out this.identifier in the Actor destroy() method you will read out default even if you have the following code:
export class MyWorker extends Worker<Env> {
async fetch(request: Request): Promise<Response> {
const deleteActor = MyDurableObject.get('foobar')
deleteActor?.destroy({ trackingInstance: '_cf_actors' });
const actor = MyDurableObject.get('_cf_actors');
const value = await actor!.sql`SELECT * FROM actors;`
return new Response(`Query: ${JSON.stringify(value)}`)
}
}Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working