File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/java/international/dmc/secom_mms_gateway/services Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1717import org .springframework .util .StringUtils ;
1818
1919import java .net .URI ;
20+ import java .util .Date ;
2021import java .util .List ;
2122import java .util .Map ;
2223import java .util .Optional ;
@@ -82,6 +83,11 @@ public Subscription addSubscription(Subscription subscription) throws Subscripti
8283 if (subscriptionResponse .isPresent () && subscriptionResponse .get ().getSubscriptionIdentifier () != null ) {
8384 subscription .setSubscriptionId (subscriptionResponse .get ().getSubscriptionIdentifier ());
8485 }
86+
87+ Date now = new Date ();
88+ subscription .setCreatedAt (now );
89+ subscription .setUpdatedAt (now );
90+
8591 subscriptionRepository .save (subscription );
8692 return subscription ;
8793 }
You can’t perform that action at this time.
0 commit comments