fix(): temporary transform cached data (#13467)

**What**
Properly store key obj reference for weak map usage
This commit is contained in:
Adrien de Peretti
2025-09-11 09:31:01 +02:00
committed by GitHub
parent 0700a2448c
commit 0079464f32
3 changed files with 26 additions and 9 deletions

View File

@@ -311,16 +311,16 @@ class DistributedTransaction extends EventEmitter {
await DistributedTransaction.keyValueStore.clearStepTimeout(this, step)
}
public setTemporaryData(key: string, value: unknown) {
this.#temporaryStorage.set({ key }, value)
public setTemporaryData(key: { key: string }, value: unknown) {
this.#temporaryStorage.set(key, value)
}
public getTemporaryData(key: string) {
return this.#temporaryStorage.get({ key })
public getTemporaryData(key: { key: string }) {
return this.#temporaryStorage.get(key)
}
public hasTemporaryData(key: string) {
return this.#temporaryStorage.has({ key })
public hasTemporaryData(key: { key: string }) {
return this.#temporaryStorage.has(key)
}
/**