fix: packages (#378)

This commit is contained in:
Archer
2023-10-08 09:59:05 +08:00
committed by GitHub
parent 98ce5103a0
commit 6a84e73a82
4 changed files with 20 additions and 4 deletions

View File

@@ -9,8 +9,10 @@
"lint": "next lint"
},
"dependencies": {
"@chakra-ui/anatomy": "^2.2.1",
"@chakra-ui/icons": "^2.0.17",
"@chakra-ui/react": "^2.7.0",
"@chakra-ui/styled-system": "^2.9.1",
"@chakra-ui/system": "^2.5.8",
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
@@ -92,6 +94,7 @@
"typescript": "4.9.5"
},
"engines": {
"node": ">=18.0.0"
"node": ">=18.0.0",
"pnpm": ">=8.6.0"
}
}

View File

@@ -1,7 +1,5 @@
import { extendTheme, defineStyleConfig, ComponentStyleConfig } from '@chakra-ui/react';
// @ts-ignore
import { modalAnatomy, switchAnatomy, selectAnatomy, numberInputAnatomy } from '@chakra-ui/anatomy';
// @ts-ignore
import { createMultiStyleConfigHelpers } from '@chakra-ui/styled-system';
const { definePartsStyle, defineMultiStyleConfig } = createMultiStyleConfigHelpers(

View File

@@ -33,7 +33,10 @@ export const dispatchAppRequest = async (props: Record<string, any>): Promise<Re
return Promise.reject('Input is empty');
}
const appData = await App.findById(app.id);
const appData = await App.findOne({
_id: app.id,
userId: user._id
});
if (!appData) {
return Promise.reject('App not found');