my-typescript-library-rahul52us 3.0.7 → 3.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "my-typescript-library-rahul52us",
3
- "version": "3.0.7",
3
+ "version": "3.0.8",
4
4
  "description": "A reusable TypeScript utility library.",
5
5
  "main": "dist/server.js",
6
6
  "types": "dist/types/server.d.ts",
@@ -145,9 +145,8 @@ export async function withdrawalApprovalDocument(data: any) {
145
145
 
146
146
  export const findOneByDocumentIdAndDelete = async (data: any) => {
147
147
  try {
148
- const doc = await Document.findOne({ documentId: data.documentId });
148
+ const doc = await Document.findOneAndDelete({ documentId: data.documentId });
149
149
 
150
- console.log(doc)
151
150
  if (!doc) {
152
151
  return {
153
152
  status: "error",