Bug fixes
This commit is contained in:
@ -421,7 +421,7 @@ public class NostrController : Controller
|
||||
a.Created,
|
||||
a.Key,
|
||||
a.Expires,
|
||||
Stream = a.UserStream.Event
|
||||
Stream = NostrJson.Deserialize<NostrEvent>(a.UserStream.Event)
|
||||
})
|
||||
.ToListAsync();
|
||||
|
||||
@ -454,7 +454,7 @@ public class NostrController : Controller
|
||||
PubKey = userPubkey,
|
||||
State = UserStreamState.Planned,
|
||||
EdgeIp = string.Empty,
|
||||
ForwardClientId = string.Empty
|
||||
ForwardClientId = string.Empty,
|
||||
};
|
||||
newStream.PatchStream(req.Event);
|
||||
var ev = _eventBuilder.CreateStreamEvent(newStream);
|
||||
|
@ -66,7 +66,7 @@ public class UserStream
|
||||
/// </summary>
|
||||
public string? ForwardClientId { get; set; }
|
||||
|
||||
public DateTime? LastSegment { get; set; }
|
||||
public DateTime? LastSegment { get; set; } = DateTime.UtcNow;
|
||||
|
||||
/// <summary>
|
||||
/// Total sats charged during this stream
|
||||
|
@ -85,6 +85,7 @@ public class StreamManagerFactory
|
||||
// resume stream, update edge forward info
|
||||
existingLive.EdgeIp = info.EdgeIp;
|
||||
existingLive.ForwardClientId = info.ClientId;
|
||||
existingLive.EndpointId = ep.Id;
|
||||
await _db.SaveChangesAsync();
|
||||
}
|
||||
|
||||
@ -166,7 +167,7 @@ public class StreamManagerFactory
|
||||
.FirstOrDefaultAsync(a =>
|
||||
(a.StreamKey != default && a.StreamKey.Key == info.StreamKey) ||
|
||||
(a.User.StreamKey.Equals(info.StreamKey) &&
|
||||
a.Endpoint != null &&
|
||||
a.Endpoint != null &&
|
||||
a.Endpoint.App.Equals(info.App) &&
|
||||
a.State == UserStreamState.Live));
|
||||
|
||||
|
Reference in New Issue
Block a user