Skip to content

Commit

Permalink
Merge pull request #27 from xeptagondev/iverfiy-rdc-be
Browse files Browse the repository at this point in the history
fix email body css issues
  • Loading branch information
janithr1 authored Oct 18, 2024
2 parents b242517 + 8e08cd1 commit e57fb3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 29 deletions.
29 changes: 2 additions & 27 deletions libs/email/src/lib/email.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class EmailService {
email: string,
title: string,
factCheckedLink: string,
date: string
date?: string
): Promise<void> {
try {
let htmlContent = `<div class="">
Expand Down Expand Up @@ -228,7 +228,7 @@ export class EmailService {
target="_blank"
data-saferedirecturl="https://www.google.com/url?q=${factCheckedLink}"
>${title}
>
</td>
</tr>
Expand Down Expand Up @@ -548,31 +548,6 @@ export class EmailService {
/></a>
</td>
</tr>
<tr>
<td
width="100%"
align="center"
dir="ltr"
style="padding-bottom: 24px"
>
<a
style="
font-size: 13px;
font-family: Verdana, Geneva,
sans-serif;
font-weight: normal;
color: #222222;
text-decoration: none;
line-height: normal;
"
href="https://rdc.i-verify.org/"
target="_blank"
data-saferedirecturl="https://www.google.com/url?q=https://rdc.i-verify.org/"
>Voir en ligne</a
>
</td>
</tr>
</tbody>
</table>
</td>
Expand Down
3 changes: 1 addition & 2 deletions libs/wp-client/src/lib/wp-client.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ export class WpClientService{
const start = new Date();
start.setHours(start.getHours() - 24);
const startDate = date ?? start.toISOString().split('.')[0];
console.log('getPostsFromDate', startDate);
return this.http.get(this.config.endpoints.posts + '?after=' + startDate, this.auth).pipe(
return this.http.get(this.config.endpoints.posts + '?after=' + startDate + '&per_page=100' , this.auth).pipe(
map(res => res.data),
catchError(err => {
console.log('Error getting post', err)
Expand Down

0 comments on commit e57fb3b

Please sign in to comment.