From f23593b6a6b25dd16302bd29c4a24de43a4b1e8e Mon Sep 17 00:00:00 2001 From: Courey Elliott Date: Tue, 10 Dec 2024 14:48:09 -0500 Subject: [PATCH] update set to include slug --- app/routes/synonyms/synonyms.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/synonyms/synonyms.server.ts b/app/routes/synonyms/synonyms.server.ts index 9887a9d96..4fe83f9b1 100644 --- a/app/routes/synonyms/synonyms.server.ts +++ b/app/routes/synonyms/synonyms.server.ts @@ -165,7 +165,7 @@ export async function tryInitSynonym(eventId: string) { try { await db.synonyms.update({ Key: { eventId }, - UpdateExpression: 'set #synonymId = :synonymId', + UpdateExpression: 'set #synonymId = :synonymId, #slug = :slug', ExpressionAttributeNames: { '#synonymId': 'synonymId', '#slug': 'slug',