mirror of
https://github.com/brufdev/many-notes.git
synced 2025-12-17 00:24:44 -06:00
Fix query in databases with ONLY_FULL_GROUP_BY enabled
This commit is contained in:
@@ -16,7 +16,9 @@ final readonly class UpdateVaultNodeBacklinks
|
||||
return;
|
||||
}
|
||||
|
||||
$backlinks = $node->backlinks()->groupBy('source_id')->get();
|
||||
$backlinks = $node->backlinks()
|
||||
->groupBy('id', 'vault_node_vault_node.destination_id', 'vault_node_vault_node.source_id')
|
||||
->get();
|
||||
|
||||
if ($backlinks->count() === 0) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user