Skip to content

Commit

Permalink
Database: Use module name as default backend name
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab authored and nilmerg committed Sep 20, 2023
1 parent c5310ed commit e6b64c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Notifications/Common/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static function get(): Connection
private static function getConnection(): Connection
{
$config = new SqlConfig(ResourceFactory::getResourceConfig(
AppConfig::module('notifications')->get('database', 'resource')
AppConfig::module('notifications')->get('database', 'resource', 'notifications')
));

$config->options = [PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ];
Expand Down

0 comments on commit e6b64c5

Please sign in to comment.