Esempio n. 1
0
        public async Task Execute()
        {
            var counter = await _counterRepository.GetCurrent();

            if (!await _pekaRepository.CheckCounter(counter + 1))
            {
                return;
            }
            ++counter;

            await _counterRepository.IncrementCurrent();

            var newPeka = await _pekaRepository.GetPeka(counter);

            await _cockroachPekaRepository.SetPeka(newPeka.Url);

            await _fcmSender.SendNewPeka();
        }