@shizuoka-its/core 2.0.0-alpha.1 → 2.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,9 @@ const prisma = new client_1.PrismaClient();
7
7
  class PrismaMemberRepository {
8
8
  toDomain(record) {
9
9
  const member = new domain_1.Member(record.id, record.name, record.studentId, domain_1.Department.fromString(record.department), new domain_1.UniversityEmail(record.email), record.personalEmail ? new domain_1.Email(record.personalEmail) : undefined);
10
+ for (const discordAccount of record.discordAccounts) {
11
+ member.addDiscordAccount(new domain_1.DiscordAccount(discordAccount.id, discordAccount.nickName, discordAccount.memberId));
12
+ }
10
13
  return member;
11
14
  }
12
15
  async findByDiscordAccountId(discordAccountId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shizuoka-its/core",
3
- "version": "2.0.0-alpha.1",
3
+ "version": "2.0.0-alpha.2",
4
4
  "description": "ITS core library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",