This allows native to get all aux user infos from sqlite aux user store
Depends on D11509
Differential D11510
[sqlite] Implement C++ for native to get all aux user infos will on Mar 31 2024, 11:04 PM. Authored by Tags None Referenced Files
Details This allows native to get all aux user infos from sqlite aux user store Depends on D11509 Ran the following code and confirmed results by getting all aux user infos: async function run_test() { console.log('running run_test()'); await commCoreModule.processAuxUserStoreOperations([ { type: 'remove_all_aux_user_infos', }, ]); let data = await commCoreModule.getClientDBStore(); console.log(data.auxUserInfos); await commCoreModule.processAuxUserStoreOperations([ { type: 'replace_aux_user_info', payload: { id: 'test_aux_user_A', auxUserInfo: JSON.stringify({ fid: 'test_fid_of_user_A' }), }, }, { type: 'remove_all_aux_user_infos', }, { type: 'replace_aux_user_info', payload: { id: 'test_aux_user_B', auxUserInfo: JSON.stringify({ fid: 'test_fid_of_user_B' }), }, }, { type: 'replace_aux_user_info', payload: { id: 'test_aux_user_C', auxUserInfo: JSON.stringify({ fid: 'test_fid_of_user_C' }), }, }, { type: 'remove_aux_user_infos', payload: { ids: ['test_aux_user_C'], }, }, ]); data = await commCoreModule.getClientDBStore(); console.log(data.auxUserInfos); }
Diff Detail
|