mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-11 02:31:46 +00:00
Fix bug in key.ts controller
This commit is contained in:
@ -30,5 +30,5 @@ export const deleteKey = async (userId: string, projectId: string, keyId: string
|
||||
const key = await AccessKey.findOne({ _id: keyId, projectId });
|
||||
if (key === null) return { code: 8002, message: "The provided key could not be found" };
|
||||
|
||||
key.deleteOne();
|
||||
await key.deleteOne();
|
||||
};
|
||||
Reference in New Issue
Block a user