mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-11 18:51:47 +00:00
Fix bug in meta.ts controller
This commit is contained in:
@ -73,7 +73,7 @@ export const deleteMetaData = async (userId: string, projectId: string, name: st
|
||||
const meta = await MetaData.findOne({ projectId: String(access._id), name });
|
||||
if (meta === null) return { code: 8002, message: "The provided meta item could not be found" };
|
||||
|
||||
meta.deleteOne();
|
||||
await meta.deleteOne();
|
||||
}
|
||||
|
||||
export const updateMetaData = async (userId: string, projectId: string, name: string, config: IMetaData) => {
|
||||
|
||||
Reference in New Issue
Block a user