Skip to content

Commit

Permalink
fix(kv): "update" action error message if update fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Sorikairox committed Jun 14, 2023
1 parent f25e156 commit f18506a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion back/src/database/repository.kv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export abstract class KvRepository<T extends { _id: string }>
}
const transactionResult = await transaction.commit();
if (!transactionResult.ok) {
throw new Error("Could create entity");
throw new Error("Could update entity");
}
return item;
}
Expand Down

0 comments on commit f18506a

Please sign in to comment.