Skip to content

Commit

Permalink
re-updating blog excerpt
Browse files Browse the repository at this point in the history
  • Loading branch information
Bardala committed Nov 18, 2023
1 parent ad60714 commit 97702ca
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions backend/src/dataStore/sql/SqlDataStore.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ export class SqlDataStore implements DataStoreDao {
offset,
]);
const blogs = rows as Blog[];
blogs.forEach(blog => {
blog.content = blog.content;
});
return blogs;
}

Expand Down Expand Up @@ -479,9 +476,6 @@ export class SqlDataStore implements DataStoreDao {
`;
const [rows] = await this.pool.query<RowDataPacket[]>(query, [spaceId, pageSize, offset]);
const blogs = rows as Blog[];
blogs.forEach(blog => {
blog.content = blog.content.replace(/[#*`]/g, '');
});
return blogs;
}

Expand Down Expand Up @@ -509,9 +503,6 @@ export class SqlDataStore implements DataStoreDao {
`;
const [rows] = await this.pool.query<RowDataPacket[]>(query, [userId, pageSize, offset]);
const blogs = rows as Blog[];
blogs.forEach(blog => {
blog.content = blog.content.replace(/[#*`]/g, '');
});
return blogs;
}

Expand Down

0 comments on commit 97702ca

Please sign in to comment.