(userId, giveawayId)
| 11 | const GIVEAWAY_INTERACTION_COOLDOWN = 1000; |
| 12 | |
| 13 | function getGiveawayInteractionKey(userId, giveawayId) { |
| 14 | return `giveaway:${userId}:${giveawayId}`; |
| 15 | } |
| 16 | |
| 17 | export function parseDuration(durationString) { |
| 18 | if (!durationString || typeof durationString !== 'string') { |
no outgoing calls
no test coverage detected