Mercurial Hosting > chat
comparison src/lib/Db.luan @ 57:c420f39eb474
chatuser_key
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Tue, 04 Mar 2025 07:05:12 -0700 |
| parents | d21ae4920aac |
| children | 7b6691bd65c3 |
comparison
equal
deleted
inserted
replaced
| 56:323ddacc1593 | 57:c420f39eb474 |
|---|---|
| 26 Db.indexed_fields.chat_updated = Lucene.type.long | 26 Db.indexed_fields.chat_updated = Lucene.type.long |
| 27 | 27 |
| 28 Db.indexed_fields.post_chat_id = Lucene.type.long | 28 Db.indexed_fields.post_chat_id = Lucene.type.long |
| 29 Db.indexed_fields.post_date = Lucene.type.long | 29 Db.indexed_fields.post_date = Lucene.type.long |
| 30 | 30 |
| 31 Db.indexed_fields.chatuser_id = Lucene.type.string | 31 Db.indexed_fields.chatuser_key = Lucene.type.string |
| 32 Db.indexed_fields.chatuser_chat_id = Lucene.type.long | 32 Db.indexed_fields.chatuser_chat_id = Lucene.type.long |
| 33 | 33 |
| 34 function Db.not_in_transaction() | 34 function Db.not_in_transaction() |
| 35 logger.error(new_error("not in transaction")) | 35 logger.error(new_error("not in transaction")) |
| 36 end | 36 end |
| 44 end | 44 end |
| 45 end | 45 end |
| 46 [2] = function() | 46 [2] = function() |
| 47 Db.delete("type:chatuser") | 47 Db.delete("type:chatuser") |
| 48 end | 48 end |
| 49 [3] = function() | |
| 50 Db.delete("type:chatuser") | |
| 51 end | |
| 49 } | 52 } |
| 50 | 53 |
| 51 if Http.is_serving then | 54 if Http.is_serving then |
| 52 Thread.schedule( Db.check, { delay=0, repeating_delay=Time.period{hours=1} } ) | 55 Thread.schedule( Db.check, { delay=0, repeating_delay=Time.period{hours=1} } ) |
| 53 end | 56 end |
