mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-10 19:35:46 -05:00
Fix build delete action 500 error if build does not exist
This commit is contained in:
@@ -257,9 +257,9 @@ export async function ownerIdById(buildId: number) {
|
||||
.selectFrom("Build")
|
||||
.select("ownerId")
|
||||
.where("id", "=", buildId)
|
||||
.executeTakeFirstOrThrow();
|
||||
.executeTakeFirst();
|
||||
|
||||
return result.ownerId;
|
||||
return result?.ownerId ?? null;
|
||||
}
|
||||
|
||||
export async function abilityPointAverages(weaponSplId?: MainWeaponId | null) {
|
||||
|
||||
Reference in New Issue
Block a user