You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug MultiChannelStockLocationStrategy is not clearing cached channel ids on StockLocationEvent
Expected behavior MultiChannelStockLocationStrategy should clear cached channel ids on StockLocationEvent
Environment (please complete the following information):
@vendure/core version: 3.1.1
Nodejs version 22
Database (mysql/postgres etc): sqlite, mysql
Additional context This should be const channelIds = await this.channelIdCache.get(this.getCacheKey(stockLevel.stockLocationId), since we are trying to clear cached channel ids by using this.getCacheKey(stockLocationId) in here This should be
Describe the bug
MultiChannelStockLocationStrategy
is not clearing cached channel ids onStockLocationEvent
Expected behavior
MultiChannelStockLocationStrategy
should clear cached channel ids onStockLocationEvent
Environment (please complete the following information):
Additional context
This should beconst channelIds = await this.channelIdCache.get(this.getCacheKey(stockLevel.stockLocationId),since we are trying to clear cached channel ids by usingthis.getCacheKey(stockLocationId)
in hereThis should be
Since
Cache.delete
expectsid
rather than the whole cache key.The text was updated successfully, but these errors were encountered: