]> git.ipfire.org Git - pbs.git/commitdiff
builds: Fix fetching watchers
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Feb 2025 20:25:21 +0000 (20:25 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Feb 2025 20:25:21 +0000 (20:25 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/builds.py

index 4de4fd19399b66cb94d36ce567f004afa9d093f7..113b57ead2ed0154767a4b6a3add64207a5e3cf6 100644 (file)
@@ -763,7 +763,9 @@ class Build(database.Base, database.BackendMixin, database.SoftDeleteMixin):
                """
                        Convenience function which sends an email to everybody who would care
                """
-               for user in self.watchers:
+               watchers = await self.get_watchers()
+
+               for user in watchers:
                        # Skip some people
                        if exclude and user in exclude:
                                continue