website refactor
This commit is contained in:
@@ -4,12 +4,13 @@
|
||||
* In-memory implementation of IAchievementRepository
|
||||
*/
|
||||
|
||||
import { Achievement, AchievementCategory, IAchievementRepository, UserAchievement } from "@core/identity";
|
||||
import { Achievement } from "@core/identity/domain/entities/Achievement";
|
||||
import { AchievementCategory } from "@core/identity/domain/types/AchievementTypes";
|
||||
import { AchievementRepository } from "@core/identity/domain/repositories/AchievementRepository";
|
||||
import { UserAchievement } from "@core/identity/domain/entities/UserAchievement";
|
||||
import { ADMIN_ACHIEVEMENTS, COMMUNITY_ACHIEVEMENTS, DRIVER_ACHIEVEMENTS, STEWARD_ACHIEVEMENTS } from "@core/identity/domain/AchievementConstants";
|
||||
import { Logger } from "@core/shared/domain";
|
||||
|
||||
|
||||
|
||||
export class InMemoryAchievementRepository implements AchievementRepository {
|
||||
private achievements: Map<string, Achievement> = new Map();
|
||||
private userAchievements: Map<string, UserAchievement> = new Map();
|
||||
@@ -282,4 +283,4 @@ export class InMemoryAchievementRepository implements AchievementRepository {
|
||||
this.userAchievements.clear();
|
||||
this.logger.info('All achievement data cleared.');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user