Skip to content

Commit

Permalink
Merge pull request oskariorg#863 from ZakarFin/view-reset-default
Browse files Browse the repository at this point in the history
Provide an update ts and only update changed appsetups
  • Loading branch information
ZakarFin authored Jun 17, 2022
2 parents 5e7cb9d + d997e9c commit 2abf154
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public interface AppSetupMapper {
@Delete("DELETE FROM oskari_appsetup WHERE creator = #{userId}")
void deleteViewByUser(long userId);

@Update("UPDATE oskari_appsetup SET is_default = FALSE, updated = #{updated} WHERE creator = #{userId} AND type = 'USER'")
@Update("UPDATE oskari_appsetup SET is_default = FALSE, updated = NOW() WHERE creator = #{userId} AND is_default = TRUE AND type = 'USER'")
void resetUsersDefaultViews(long userId);
void update(View view);
void updateUsage(View view);
Expand Down

0 comments on commit 2abf154

Please sign in to comment.