Skip to content

Commit

Permalink
Fixup reminder execution; Publish 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
l7ssha committed Oct 23, 2022
1 parent db3d846 commit e49ec1f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.0.1

- Fixup reminder execution

## 3.0.0

- Update docker image to Dart 2.18.0
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.9'
services:
running_on_dart:
image: ghcr.io/nyxx-discord/running_on_dart:3.0.0-1
image: ghcr.io/nyxx-discord/running_on_dart:3.0.1
container_name: running_on_dart
env_file:
- .env
Expand Down
5 changes: 4 additions & 1 deletion lib/src/services/db.dart
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ class DatabaseService {
''')
..enqueueMigration('2.1', '''
ALTER TABLE feature_settings ADD CONSTRAINT settings_name_guild_id_unique UNIQUE (name, guild_id);
''');
''')
..enqueueMigration('2.2', '''
TRUNCATE TABLE reminders;
''');

await migrator.runMigrations();

Expand Down
1 change: 1 addition & 0 deletions lib/src/services/reminder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ class ReminderService {
}

reminders.remove(reminder);
await removeReminder(reminder);
}

/// Add a new reminder to the database and schedule its execution.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: running_on_dart
version: 3.0.0
version: 3.0.1
description: Discord Bot for nyxx development
homepage: https://github.com/nyxx-discord/running_on_dart
repository: https://github.com/nyxx-discord/running_on_dart
Expand Down

0 comments on commit e49ec1f

Please sign in to comment.