Skip to content

Commit e57fb3b

Browse files
authored
Merge pull request #27 from xeptagondev/iverfiy-rdc-be
fix email body css issues
2 parents b242517 + 8e08cd1 commit e57fb3b

File tree

2 files changed

+3
-29
lines changed

2 files changed

+3
-29
lines changed

libs/email/src/lib/email.service.ts

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class EmailService {
6565
email: string,
6666
title: string,
6767
factCheckedLink: string,
68-
date: string
68+
date?: string
6969
): Promise<void> {
7070
try {
7171
let htmlContent = `<div class="">
@@ -228,7 +228,7 @@ export class EmailService {
228228
target="_blank"
229229
data-saferedirecturl="https://www.google.com/url?q=${factCheckedLink}"
230230
>${title}
231-
>
231+
232232
</td>
233233
</tr>
234234
@@ -548,31 +548,6 @@ export class EmailService {
548548
/></a>
549549
</td>
550550
</tr>
551-
552-
<tr>
553-
<td
554-
width="100%"
555-
align="center"
556-
dir="ltr"
557-
style="padding-bottom: 24px"
558-
>
559-
<a
560-
style="
561-
font-size: 13px;
562-
font-family: Verdana, Geneva,
563-
sans-serif;
564-
font-weight: normal;
565-
color: #222222;
566-
text-decoration: none;
567-
line-height: normal;
568-
"
569-
href="https://rdc.i-verify.org/"
570-
target="_blank"
571-
data-saferedirecturl="https://www.google.com/url?q=https://rdc.i-verify.org/"
572-
>Voir en ligne</a
573-
>
574-
</td>
575-
</tr>
576551
</tbody>
577552
</table>
578553
</td>

libs/wp-client/src/lib/wp-client.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ export class WpClientService{
5959
const start = new Date();
6060
start.setHours(start.getHours() - 24);
6161
const startDate = date ?? start.toISOString().split('.')[0];
62-
console.log('getPostsFromDate', startDate);
63-
return this.http.get(this.config.endpoints.posts + '?after=' + startDate, this.auth).pipe(
62+
return this.http.get(this.config.endpoints.posts + '?after=' + startDate + '&per_page=100' , this.auth).pipe(
6463
map(res => res.data),
6564
catchError(err => {
6665
console.log('Error getting post', err)

0 commit comments

Comments
 (0)