Skip to content

Commit

Permalink
fix(app): set recurrence to undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
agjini committed Jun 6, 2024
1 parent 777432f commit be5ec2d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions app/src/screens/communities/CommunitiesChatScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ export const CommunitiesChatScreen = () => {
from: me!.lianeRequest.wayPoints[0].id!,
to: me!.lianeRequest.wayPoints[1].id!,
availableSeats: me!.lianeRequest.canDrive ? 1 : -1,
geolocationLevel: geolocationLevel || "None",
recurrence: "0000000"
geolocationLevel: geolocationLevel || "None"
});
const goMessage = await services.community.sendMessage(liane!.id!, {
type: "Trip",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public sealed class TripServiceImpl(
{
var createdBy = owner ?? currentContext.CurrentUser().Id;
var createdAt = DateTime.UtcNow;
if (entity.Recurrence is null)
if (entity.Recurrence is null || entity.Recurrence.Value.IsEmpty())
{
return await CreateWithReturn(entity, createdBy, createdAt, null);
}
Expand Down
2 changes: 1 addition & 1 deletion common/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export type LianeRequest = Identity &
availableSeats: number;
from: Ref<RallyingPoint>;
to: Ref<RallyingPoint>;
recurrence: DayOfWeekFlag | null;
recurrence?: DayOfWeekFlag;
geolocationLevel: GeolocationLevel;
// shareWith: Ref<User>[];
}>;
Expand Down

0 comments on commit be5ec2d

Please sign in to comment.