Commit f651b7ea authored by Andrei Mihu's avatar Andrei Mihu
Browse files

Include subscriptions in all data deletion from the developer console.

parent 57f3869f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
### Fixed
- Graceful handling of storage list errors in JavaScript runtime.
- More exact usage of limit parameter in leaderboard record listings.
- Include subscriptions in all data deletion from the developer console.

## [3.13.1] - 2022-08-18
### Fixed
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ func (s *ConsoleServer) GetConfig(ctx context.Context, in *emptypb.Empty) (*cons

func (s *ConsoleServer) DeleteAllData(ctx context.Context, in *emptypb.Empty) (*emptypb.Empty, error) {
	query := `TRUNCATE TABLE users, user_edge, user_device, user_tombstone, wallet_ledger, storage, purchase,
			notification, message, leaderboard, leaderboard_record, groups, group_edge`
			subscription, notification, message, leaderboard, leaderboard_record, groups, group_edge`
	if _, err := s.db.ExecContext(ctx, query); err != nil {
		s.logger.Debug("Could not cleanup data.", zap.Error(err))
		return nil, status.Error(codes.Internal, "An error occurred while trying to truncate tables.")