add achievement

This commit is contained in:
syuilo
2023-01-22 08:00:42 +09:00
parent 7fdf298bd4
commit 26ae2dfc0f
4 changed files with 17 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ const ACHIEVEMENT_TYPES = [
'loggedInOnNewYearsDay',
'noteClipped1',
'noteFavorited1',
'myNoteFavorited1',
'profileFilled',
'markedAsCat',
'following1',
@@ -94,7 +95,7 @@ export class AchievementService {
@bindThis
public async create(
userId: User['id'],
type: string,
type: typeof ACHIEVEMENT_TYPES[number],
): Promise<void> {
if (!ACHIEVEMENT_TYPES.includes(type)) return;