feat: Mise en place de cronjob fonctionne avec une logique concour qui fonctionne

This commit is contained in:
Max batleforc 2024-06-27 18:04:35 +02:00
parent 0e4a8ae580
commit 1840bf771c
No known key found for this signature in database
GPG Key ID: 25D243AB4B6AC9E7

View File

@ -226,9 +226,8 @@ impl ScheduleJob {
if messages.last().unwrap().id != last_id {
info!("Fetching more messages because last one is not the last id");
loop {
let message_pagination = MessagePagination::After(
messages.last().unwrap().id.into(),
);
let message_pagination =
MessagePagination::After(messages.last().unwrap().id);
let mut new_messages = match http
.get_messages(
channel_id.into(),