imports/vx/server/code/vxapp.js
/**
     * Log a debug line whenever a client logs in to show the client version.
     */
Log a debug line whenever a client logs in to show the client version.
Log a debug line whenever a client logs in to show the client version .
onClientLogin(userId, clientVersion) {
        try {
            OLog.debug(`vxapp.js onClientLogin user ${Util.getUserEmail(userId)} client version ${clientVersion}`)
            Meteor.users.update(userId, { $set: { "profile.clientVersion": Meteor.appVersion.version } })
            return { success: true, icon: "ENVELOPE", key: "common.alert_transaction_success" }
        }
        catch (error) {
            OLog.error(`vxapp.js onClientLogin error=${error}`)
            return { success: false, icon: "BUG", key: "common.alert_unexpected_error", variables: { error: error.toString() } }
        }
    }
onClientLogin ( userId , clientVersion ) { try { OLog . debug ( ` ${ Util . getUserEmail ( userId ) } ${ clientVersion } ` ) Meteor . users . update ( userId , { $set : { "profile.clientVersion" : Meteor . appVersion . version } } ) return { success : true , icon : "ENVELOPE" , key : "common.alert_transaction_success" } } catch ( error ) { OLog . error ( ` ${ error } ` ) return { success : false , icon : "BUG" , key : "common.alert_unexpected_error" , variables : { error : error . toString ( ) } } } }
Log a debug line whenever a client logs in to show the client version.
Log a debug line whenever a client logs in to show the client version .