Mercurial Hosting > chat
comparison src/lib/User.luan @ 41:818697418dbe
add voice link
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 27 Feb 2025 19:05:57 -0700 |
parents | 7ea33179592a |
children | 42b741a1d5c6 |
comparison
equal
deleted
inserted
replaced
40:7ea33179592a | 41:818697418dbe |
---|---|
34 email = doc.user_email | 34 email = doc.user_email |
35 password = doc.password | 35 password = doc.password |
36 was_notified = doc.was_notified=="true" | 36 was_notified = doc.was_notified=="true" |
37 notify_email = doc.notify_email | 37 notify_email = doc.notify_email |
38 multi_notify = doc.multi_notify=="true" | 38 multi_notify = doc.multi_notify=="true" |
39 voice_url = doc.voice_url | |
39 } | 40 } |
40 end | 41 end |
41 | 42 |
42 local function to_doc(user) | 43 local function to_doc(user) |
43 return { | 44 return { |
46 user_email = user.email | 47 user_email = user.email |
47 password = user.password | 48 password = user.password |
48 was_notified = user.was_notified and "true" or nil | 49 was_notified = user.was_notified and "true" or nil |
49 notify_email = user.notify_email | 50 notify_email = user.notify_email |
50 multi_notify = user.multi_notify and "true" or nil | 51 multi_notify = user.multi_notify and "true" or nil |
52 voice_url = user.voice_url | |
51 } | 53 } |
52 end | 54 end |
53 | 55 |
54 function User.new(user) | 56 function User.new(user) |
55 | 57 |