mirror of https://github.com/certd/certd
chore:
parent
3408465df6
commit
b22f94b079
|
@ -38,7 +38,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
- run: |
|
run: |
|
||||||
npm install -g pnpm
|
npm install -g pnpm
|
||||||
pnpm install
|
pnpm install
|
||||||
npm run build
|
npm run build
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
1
|
2
|
||||||
|
|
|
@ -228,7 +228,7 @@ const mockUtil: any = {
|
||||||
handle(req: any): any {
|
handle(req: any): any {
|
||||||
const item = findById(req.body.id, list);
|
const item = findById(req.body.id, list);
|
||||||
if (item) {
|
if (item) {
|
||||||
_.mergeWith(item, req.body, (objValue, srcValue) => {
|
_.mergeWith(item, req.body, (objValue: any, srcValue: any) => {
|
||||||
if (srcValue == null) {
|
if (srcValue == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -305,7 +305,7 @@ const mockUtil: any = {
|
||||||
console.log("req", req);
|
console.log("req", req);
|
||||||
let item = findById(req.body.id, list);
|
let item = findById(req.body.id, list);
|
||||||
if (item) {
|
if (item) {
|
||||||
_.mergeWith(item, { [req.body.key]: req.body.value }, (objValue, srcValue) => {
|
_.mergeWith(item, { [req.body.key]: req.body.value }, (objValue: any, srcValue: any) => {
|
||||||
if (srcValue == null) {
|
if (srcValue == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -336,7 +336,7 @@ const mockUtil: any = {
|
||||||
for (const item of req.body) {
|
for (const item of req.body) {
|
||||||
const item2 = findById(item.id, list);
|
const item2 = findById(item.id, list);
|
||||||
if (item2) {
|
if (item2) {
|
||||||
_.mergeWith(item2, item, (objValue, srcValue) => {
|
_.mergeWith(item2, item, (objValue: any, srcValue: any) => {
|
||||||
if (srcValue == null) {
|
if (srcValue == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue