MCPcopy Create free account
hub / github.com/RealDevSquad/website-backend / storeUserDeviceInfo

Function storeUserDeviceInfo

models/qrCodeAuth.js:39–49  ·  view source on GitHub ↗
(userDeviceInfoData)

Source from the content-addressed store, hash-verified

37};
38
39const 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
51const retrieveUserDeviceInfo = async ({ deviceId, userId }) => {
52 let queryDocument;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected