fix(): temporary transform cached data (#13467)
**What** Properly store key obj reference for weak map usage
This commit is contained in:
committed by
GitHub
parent
0700a2448c
commit
0079464f32
@@ -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)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user