Skip to content

Commit

Permalink
elseif start_ts
Browse files Browse the repository at this point in the history
  • Loading branch information
cynicaljoy committed Aug 27, 2024
1 parent 72e6fa6 commit d5d9a5d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Fauna/Types/Stream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ public void Serialize(System.IO.Stream stream)
var writer = new Utf8JsonWriter(stream);
writer.WriteStartObject();
writer.WriteString("token", Token);
if (StartTs != null)
{
writer.WriteNumber("start_ts", StartTs.Value);
}
if (LastCursor != null)
{
writer.WriteString("cursor", LastCursor);
} else if (StartTs != null)
{
writer.WriteNumber("start_ts", StartTs.Value);
}
writer.WriteEndObject();
writer.Flush();
Expand Down

0 comments on commit d5d9a5d

Please sign in to comment.