Skip to content

Commit

Permalink
Fix script for test
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Feb 6, 2025
1 parent 1c6ae03 commit 38af414
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
30 changes: 25 additions & 5 deletions docs/test_db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,43 @@ DELETE FROM connector.dashboard_settings
WHERE bot_id != '8eace573-343b-4af7-b255-40c152d6832a';

UPDATE connector.teams
SET bot_id = '8eace573-343b-4af7-b255-40c152d6832a';
SET
bot_id = '8eace573-343b-4af7-b255-40c152d6832a',
chat_id = -1001685108427;

DELETE FROM connector.bots
WHERE id != '8eace573-343b-4af7-b255-40c152d6832a';

-- appraiser
UPDATE appraiser.stories
SET bot_id = '8eace573-343b-4af7-b255-40c152d6832a';
SET
bot_id = '8eace573-343b-4af7-b255-40c152d6832a',
chat_id = -1001685108427;

-- maps
UPDATE maps.maps
SET bot_id = '8eace573-343b-4af7-b255-40c152d6832a';
SET
bot_id = '8eace573-343b-4af7-b255-40c152d6832a',
chat_id = -1001685108427;


-- random_coffee
UPDATE random_coffee.entries
SET bot_id = '8eace573-343b-4af7-b255-40c152d6832a';
SET
bot_id = '8eace573-343b-4af7-b255-40c152d6832a',
chat_id = -1001685108427;

-- review
UPDATE review.task_for_reviews
SET bot_id = '8eace573-343b-4af7-b255-40c152d6832a';
SET
bot_id = '8eace573-343b-4af7-b255-40c152d6832a',
chat_id = -1001685108427;

UPDATE review.task_for_reviews
SET
state = 4,
accept_date = now()
WHERE state in (1, 2, 3);

UPDATE review.draft_task_for_reviews
SET chat_id = -1001685108427;
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public static IServiceCollection AddConnectorApplication(
.AddSingleton<TelegramUpdateHandlerFactory>()
.AddHostedService<BotWorker>()
.AddSingleton<ICommandExecutor, CommandExecutor>()
.AddSingleton<TelegramMessageSender>()
.AddSingleton<TelegramBotClientProvider>()
.AddSingleton(new AliasService(CommandList.BuildAliasMap()))
.AddSingleton<SingleLineCommandFactory>()
Expand Down

0 comments on commit 38af414

Please sign in to comment.