Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
PAW122 committed Dec 22, 2024
1 parent fffe84a commit 04c02c9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions handlers/tickets_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,20 @@
*/

// let ticket_channels_collection
// { channel_id, delete_time }
let ticket_channels_collection = new Map();

/**
*
* @param {*} channel_id
*/
async function add_new_pengind_channel(channel_id) {

// 1. save channel_id to ticket_channels_collection
ticket_channels_collection.set(channel_id, Date.now() + 24 * 60 * 60 * 1000);
}

/**
* load_pending_ticket_channels_from_db
* TODO
*/
async function load_tickets_db() {

Expand All @@ -43,6 +47,6 @@ async function delete_pending_channel(channel_id) {
// rekursywna funkcja w pentli działająca co 5 min (do sprawdzania czy kanal
// z listy jest juz do usuniecia)
async function tickets_loop() {


}

0 comments on commit 04c02c9

Please sign in to comment.