Mbonea commited on
Commit
db9d9b2
·
1 Parent(s): 0290ac3
App/Messages/MessagesRoute.py CHANGED
@@ -30,7 +30,7 @@ async def receive_message(request: Request):
30
  webhook_id=message_data.webhookId,
31
  message_content=text,
32
  phone_number=message_data.payload.phoneNumber,
33
- received_at=str(datetime.now()),
34
  sim_number=message_data.payload.simNumber,
35
  parsed_data=parsed_data,
36
  )
 
30
  webhook_id=message_data.webhookId,
31
  message_content=text,
32
  phone_number=message_data.payload.phoneNumber,
33
+ received_at=message_data.payload.receivedAt,
34
  sim_number=message_data.payload.simNumber,
35
  parsed_data=parsed_data,
36
  )
App/Messages/Schema.py CHANGED
@@ -7,7 +7,7 @@ from typing import Optional
7
  class PayloadSchema(BaseModel):
8
  message: str
9
  phoneNumber: str
10
- # receivedAt: datetime
11
  simNumber: Optional[int]
12
 
13
 
 
7
  class PayloadSchema(BaseModel):
8
  message: str
9
  phoneNumber: str
10
+ receivedAt: datetime
11
  simNumber: Optional[int]
12
 
13