my-typescript-library-rahul52us 3.0.6 → 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
|
@@ -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.
|
|
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",
|