mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-02 18:01:29 -05:00
Fix build delete action 500 error if build does not exist
This commit is contained in:
parent
92c62746be
commit
767ca4d7ab
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user