Use generated UUIDs for achievement IDs
cgen-d455d91b8ddf44a7aeebba78f554a332
This commit is contained in:
parent
b304238c3f
commit
9644e9eab3
1 changed files with 2 additions and 1 deletions
|
|
@ -77,9 +77,10 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
|
|||
// Ensure core achievements exist
|
||||
const achievementResults = await Promise.all(
|
||||
CORE_ACHIEVEMENTS.map(async (achievement) => {
|
||||
const uuidId = generateDeterministicUUID(achievement.id);
|
||||
const { error } = await admin.from("achievements").upsert(
|
||||
{
|
||||
id: achievement.id,
|
||||
id: uuidId,
|
||||
name: achievement.name,
|
||||
description: achievement.description,
|
||||
icon: achievement.icon,
|
||||
|
|
|
|||
Loading…
Reference in a new issue