fix: logs bug where it was repeating due to flaw in most recent id query
This commit is contained in:
parent
7a5a1a5e9d
commit
38b9c0e538
4 changed files with 36 additions and 31 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<div hx-swap="outerHTML" hx-get="/workshop/<%= it.structId %>/route/<%= it.routeId %>/logs?since=<%= it.since || 0 %>" hx-trigger="every 2s" class="hidden"></div>
|
||||
<% it.logs.forEach((log) => { %>
|
||||
<div class="<% if (log.error) { %>bg-red-800 text-white <% } %>">
|
||||
<!-- <div class="<% if (log.error) { %>bg-red-800 text-white <% } %>"> -->
|
||||
<%= log.content %>
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
<% }) %>
|
||||
<div hx-swap="outerHTML" hx-get="/workshop/<%= it.structId %>/route/<%= it.routeId %>/logs?since=<%= it.since || 0 %>" hx-trigger="every 5s" class="hidden"></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue