Closed ebma closed 6 months ago
The squid on Amplitude is frequently facing errors with
too late to perform db updates, make sure you haven't forgot to await on db query
which probably happens because we don't await the database operations in all functions that interact with the squid store object.
await
store
Use await in functions that interact with the ctx.store, e.g. here. To make sure we don't miss this we can think about adding this ESlint rule.
ctx.store
Putting this in maintenance epic
The squid on Amplitude is frequently facing errors with
which probably happens because we don't
await
the database operations in all functions that interact with the squidstore
object.TODO
Use
await
in functions that interact with thectx.store
, e.g. here. To make sure we don't miss this we can think about adding this ESlint rule.