Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dms-service
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Roshan Suvarnkar
dms-service
Commits
57c15b26
Commit
57c15b26
authored
1 month ago
by
Manjunath Kumar
Browse files
Options
Downloads
Patches
Plain Diff
fetch-document-by-id-review-file-changes
parent
1f0e0b1d
Branches
Branches containing commit
No related tags found
1 merge request
!3
fetchdocumentById in dms
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/document/document.service.spec.ts
+1
-1
1 addition, 1 deletion
src/document/document.service.spec.ts
src/document/interfaces/log-audit-logs.interface.ts
+7
-1
7 additions, 1 deletion
src/document/interfaces/log-audit-logs.interface.ts
with
8 additions
and
2 deletions
src/document/document.service.spec.ts
+
1
−
1
View file @
57c15b26
...
...
@@ -184,7 +184,7 @@ describe('DocumentService', () => {
it
(
'
should throw NotFoundException if document is not found
'
,
async
()
=>
{
jest
.
spyOn
(
service
[
'
prisma
'
].
documents
,
'
findUnique
'
).
mockResolvedValue
(
null
);
await
expect
(
service
.
fetchDocument
({
id
:
'
not-found-id
'
})).
rejects
.
toThrow
(
'
98
1
'
);
await
expect
(
service
.
fetchDocument
({
id
:
'
not-found-id
'
})).
rejects
.
toThrow
(
'
98
0
'
);
});
});
});
This diff is collapsed.
Click to expand it.
src/document/interfaces/log-
insertion-documents-
audit-logs
-args
.interface.ts
→
src/document/interfaces/log-audit-logs.interface.ts
+
7
−
1
View file @
57c15b26
/**
@file <file name>
@description <description>
@author <Your Name>
@created <YYYY-MM-DD>
**/
import
{
Action
,
Status
}
from
'
@prisma/client
'
;
export
interface
Log
InsertionDocuments
AuditLogsArgs
{
export
interface
LogAuditLogsArgs
{
logDetails
:
{
document_id
:
string
;
action
:
Action
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment