(userDeviceInfoData)
| 37 | }; |
| 38 | |
| 39 | const storeUserDeviceInfo = async (userDeviceInfoData) => { |
| 40 | try { |
| 41 | const { user_id: userId } = userDeviceInfoData; |
| 42 | await QrCodeAuthModel.doc(userId).set(userDeviceInfoData); |
| 43 | |
| 44 | return { userDeviceInfoData }; |
| 45 | } catch (err) { |
| 46 | logger.error("Error in storing user device info.", err); |
| 47 | throw err; |
| 48 | } |
| 49 | }; |
| 50 | |
| 51 | const retrieveUserDeviceInfo = async ({ deviceId, userId }) => { |
| 52 | let queryDocument; |
nothing calls this directly
no outgoing calls
no test coverage detected