fix: code not convert to uppercase can't create branch
This commit is contained in:
parent
b0b54451a2
commit
1d68cc2d61
1 changed files with 2 additions and 2 deletions
|
|
@ -310,10 +310,10 @@ export class BranchController extends Controller {
|
||||||
async (tx) => {
|
async (tx) => {
|
||||||
const last = await tx.runningNo.upsert({
|
const last = await tx.runningNo.upsert({
|
||||||
where: {
|
where: {
|
||||||
key: `MAIN_BRANCH_${code}`,
|
key: `MAIN_BRANCH_${code.toLocaleUpperCase()}`,
|
||||||
},
|
},
|
||||||
create: {
|
create: {
|
||||||
key: `MAIN_BRANCH_${code}`,
|
key: `MAIN_BRANCH_${code.toLocaleUpperCase()}`,
|
||||||
value: 1,
|
value: 1,
|
||||||
},
|
},
|
||||||
update: { value: { increment: 1 } },
|
update: { value: { increment: 1 } },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue