Skip to content

Commit

Permalink
Merge pull request #1168 from lowcoder-org/fix/lastEditedAt
Browse files Browse the repository at this point in the history
fix issue with lastEditedAt
  • Loading branch information
FalkWolsky authored Sep 18, 2024
2 parents f70f7a1 + 88339bb commit 88992dc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,8 @@ private ApplicationInfoView buildView(Application application, String role, @Nul
.publicToMarketplace(application.isPublicToMarketplace())
.agencyProfile(application.agencyProfile())
.editingUserId(application.getEditingUserId())
.lastModifyTime(application.getUpdatedAt())
.lastEditedAt(application.getLastEditedAt())
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class ApplicationInfoView {
@Nullable
private final Instant lastViewTime; // user last visit time for this app
private final Instant lastModifyTime; // app's last update time
private final Instant lastEditedAt;

private final boolean publicToAll;
private final boolean publicToMarketplace;
Expand All @@ -48,6 +49,10 @@ public long getLastModifyTime() {
return lastModifyTime == null ? 0 : lastModifyTime.toEpochMilli();
}

public long getLastEditedAt() {
return lastEditedAt == null ? 0 : lastEditedAt.toEpochMilli();
}

/**
* used by front end.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ private ApplicationInfoView buildView(Application application, ResourceRole maxR
.applicationStatus(application.getApplicationStatus())
.lastModifyTime(application.getUpdatedAt())
.lastViewTime(lastViewTime)
.lastEditedAt(application.getLastEditedAt())
.publicToAll(application.isPublicToAll())
.publicToMarketplace(application.isPublicToMarketplace())
.agencyProfile(application.agencyProfile());
Expand Down

0 comments on commit 88992dc

Please sign in to comment.