chore: ingest source code

58 files from https://github.com/gothinkster/node-express-realworld-example-app
This commit is contained in:
2026-03-13 16:01:40 +00:00
commit cae1f5b259
58 changed files with 12898 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import { User } from '../auth/user.model';
const authorMapper = (author: any, id?: number) => ({
username: author.username,
bio: author.bio,
image: author.image,
following: id
? author?.followedBy.some((followingUser: Partial<User>) => followingUser.id === id)
: false,
});
export default authorMapper;