Skip to content

Commit

Permalink
version bump + fix invoice serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptosharks131 committed Feb 3, 2023
1 parent 210c2ee commit 5be4020
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gui/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h1><a href="/">My Lnd Overview</a></h1>
<center><button onclick="darkMode()">Toggle dark mode</button></center>
</div>
<div class="w3-container w3-padding-small">
<center>LNDg v1.5.0</center>
<center>LNDg v1.5.1</center>
</div>
</div>
</footer>
Expand Down
4 changes: 2 additions & 2 deletions gui/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2746,8 +2746,8 @@ class InvoicesViewSet(viewsets.ReadOnlyModelViewSet):
serializer_class = InvoiceSerializer

def update(self, request, pk=None):
setting = get_object_or_404(LocalSettings.objects.all(), pk=pk)
serializer = LocalSettingsSerializer(setting, data=request.data, context={'request': request})
setting = get_object_or_404(Invoices.objects.all(), pk=pk)
serializer = InvoiceSerializer(setting, data=request.data, context={'request': request})
if serializer.is_valid():
serializer.save()
return Response(serializer.data)
Expand Down

0 comments on commit 5be4020

Please sign in to comment.