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
asyncfunctioncreateCounter(api: Api,user: string){consttransaction=awaitapi.data.startTransaction();constcounterColl=transaction.coll(Counter);letcounters=awaitcounterColl.find({ user });console.log(counters);if(counters.length==0){awaitcounterColl.createDoc(newCounter(user,0));returntransaction.commit();}returntransaction.abort();}
What browsers are you seeing the problem on?
No response
Version
lenra/devtools latest 7790ca183815
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
What happened?
I tried to create and query database documents using the
@me
but it's set asnull
instead of the user id.To reproduce the problem replace this function (https://github.com/lenra-io/template-bun-ts/blob/1123885f2283fbf98beaf38ff40180c0eca5c682/src/listeners/systemEvents.ts#L29) by the next one:
What browsers are you seeing the problem on?
No response
Version
lenra/devtools latest 7790ca183815
Relevant log output
No response
The text was updated successfully, but these errors were encountered: