Mercurial Hosting > lang
comparison src/lib/Db.luan @ 4:b1adec083e44
chat work
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 08 Jul 2025 22:15:41 -0600 |
parents | 78708fa556a0 |
children | 0c17c233c45a |
comparison
equal
deleted
inserted
replaced
3:eee6d4f59811 | 4:b1adec083e44 |
---|---|
16 version = 1 | 16 version = 1 |
17 } ) | 17 } ) |
18 | 18 |
19 Db.indexed_fields.user_email = Lucene.type.lowercase | 19 Db.indexed_fields.user_email = Lucene.type.lowercase |
20 | 20 |
21 Db.indexed_fields.chat_user_id = Lucene.type.long | |
22 Db.indexed_fields.chat_updated = Lucene.type.long | |
23 | |
21 Db.restore_from_log() | 24 Db.restore_from_log() |
22 | 25 |
23 if Http.is_serving then | 26 if Http.is_serving then |
24 Thread.schedule( Db.check, { delay=0, repeating_delay=Time.period{hours=1} } ) | 27 Thread.schedule( Db.check, { delay=0, repeating_delay=Time.period{hours=1} } ) |
25 end | 28 end |