HomePhabricator
Diffusion Comm c37fdc73806b

[web-db] implement setting/getting `currentUserID` on worker

Description

[web-db] implement setting/getting currentUserID on worker

Summary:
Store currentUserID in SQLite database.

It can be done by different way - performing operations directly on metadata table with parameters, but I wanted to make it similar to CommCoreModuleSchema.

Depend on D7181

Test Plan: Send SET_CURRENT_USER_ID and GET_CURRENT_USER_ID messages to worker and check if it works

Reviewers: michal, tomek, marcin, ashoat

Reviewed By: ashoat

Subscribers: ashoat, atul

Differential Revision: https://phab.comm.dev/D7182

Details

Provenance
kamilAuthored on Mar 25 2023, 6:37 AM
Reviewer
ashoat
Differential Revision
D7182: [web-db] implement setting/getting `currentUserID` on worker
Parents
rCOMM1120f89ed7bb: [web-db] add unit tests for metadata operations
Branches
Unknown
Tags
Unknown