Skip to content

Commit

Permalink
Revert "Added cityId for subscription."
Browse files Browse the repository at this point in the history
  • Loading branch information
sam5102 authored Sep 21, 2024
1 parent d90520b commit bc8197c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public void setSubscriptionId(String subscriptionId) {
private Integer gamesLeft;

private String expiryDate;
private String cityId;

public String getStatus() {
return status;
Expand Down Expand Up @@ -77,14 +76,6 @@ public void setExpiryDate(String expiryDate) {
this.expiryDate = expiryDate;
}

public String getCityId() {
return cityId;
}

public void setCityId(String cityId) {
this.cityId = cityId;
}

// This is a composite key made up of userId and subscriptionId
@Id
private SubscriptionKey subscriptionKey;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public MutationResult createSubscription(String email, String passId) {
.gamesLeft(gamesLeft)
.status("Active")
.expiryDate(expiryDate)
.cityId(pass.getCityId())
.build();

log.error(subscription.toString());
Expand Down Expand Up @@ -157,7 +156,6 @@ com.flickmatch.platform.graphql.type.Subscription mapEventToGQLType(Subscription
.expiryDate(subs.getExpiryDate())
.gamesLeft(subs.getGamesLeft())
.status(subs.getStatus())
.cityId(subs.getCityId())
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ public class Subscription {
private String passId;
private String userId;
private Integer gamesLeft;
private String cityId;

private String expiryDate;
}
1 change: 0 additions & 1 deletion platform/src/main/resources/graphql/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ type Subscription {
expiryDate: String!
gamesLeft: Int!
status: String!
cityId: String!
}

type Pass {
Expand Down

0 comments on commit bc8197c

Please sign in to comment.