@@ -9,14 +9,14 @@ class Registration:
99 def __init__ (self , record_properties ):
1010 self .record_id = record_properties [0 ]
1111 self .phone_number = record_properties [1 ]
12- self .hangout = record_properties [2 ]
12+ self .service_name = record_properties [2 ]
1313
1414
1515class RegistrationRepository :
1616 def __init__ (self , connector ):
1717 self .__connector = connector
1818
19- self .__find_by_id_query = "select id,phone_number,hangout from pre_registration_request where id = %s"
19+ self .__find_by_id_query = "select id,phone_number,service_name from pre_registration_request where id = %s"
2020
2121 def find_by_id (self , record_id ):
2222 query = self .__find_by_id_query
@@ -33,7 +33,7 @@ def __init__(self):
3333 self .__message_format = """
3434 새로운 사전 신청이 들어왔어요! 🎉
3535 - 전화번호: {phone_number}
36- - 단골로 지정할 식당 : {hangout }
36+ - 서비스명 : {service_name }
3737 """ .strip ()
3838
3939 def __call__ (self , message ):
@@ -46,12 +46,12 @@ def handle(self, message):
4646
4747 result = registration_repository .find_by_id (record_id )
4848 phone_number = result .phone_number
49- hangout = result .hangout
49+ service_name = result .service_name
5050
5151 data = {
5252 'text' : self .__message_format .format (
5353 phone_number = phone_number ,
54- hangout = hangout ,
54+ service_name = service_name ,
5555 )
5656 }
5757
0 commit comments