File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,11 @@ export async function getAllUsers(): Promise<
168168> {
169169 try {
170170 const users = await prisma . user . findMany ( {
171+ where : {
172+ NOT : {
173+ id : 0 , // exclude memo from all user search results
174+ } ,
175+ } ,
171176 include : {
172177 enrollments : {
173178 include : {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ beforeAll(() => {
1414test ( "get all users" , async ( ) => {
1515 const result = await getAllUsers ( ) ;
1616 expect ( result . code ) . toBe ( 200 ) ;
17- expect ( result . body ) . toSatisfy ( ( s ) => s . length === 4 ) ;
17+ expect ( result . body ) . toSatisfy ( ( s ) => s . length === 3 ) ;
1818 expect ( result . body ) . toSatisfy (
1919 ( s ) =>
2020 typeof s !== "string" && s . some ( ( person ) => person . name === "田中太郎" ) ,
You can’t perform that action at this time.
0 commit comments