| 
														
															@@ -35,7 +35,7 @@ export class SqliteStore { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     recipient: string, 
														 | 
														
														 | 
														
															     recipient: string, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     newerThan: Date, 
														 | 
														
														 | 
														
															     newerThan: Date, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   ): Array<{ id: string; receivedAt: Date; data: string }> { 
														 | 
														
														 | 
														
															   ): Array<{ id: string; receivedAt: Date; data: string }> { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    const result = this.db.query<[string, string, number]>( 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    const result = this.db.query<[number, string, number]>( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       ` 
														 | 
														
														 | 
														
															       ` 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       SELECT id, data, received_at FROM emails 
														 | 
														
														 | 
														
															       SELECT id, data, received_at FROM emails 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       WHERE recipient = ? 
														 | 
														
														 | 
														
															       WHERE recipient = ? 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -46,7 +46,7 @@ export class SqliteStore { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     ); 
														 | 
														
														 | 
														
															     ); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															     return result.map(([id, data, receivedAt]) => { 
														 | 
														
														 | 
														
															     return result.map(([id, data, receivedAt]) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      return { id, data, receivedAt: new Date(receivedAt * 1000) }; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      return { id: `${id}`, data, receivedAt: new Date(receivedAt * 1000) }; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }); 
														 | 
														
														 | 
														
															     }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   } 
														 | 
														
														 | 
														
															   } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 |