     func delete(_ req: Request, note: Note) throws -> ResponseRepresentable {
         let userId = try req.userId()
         
-        try note.checkIsSameUserId(requestedUserId: userId)
+        try note.checkIsSameUserId(requesterUserId: userId)
         
         try TagNoteRelation.deleteAllByNote(note: note)
         try note.delete()

        let userId = try req.userId()
        let note = try req.note()
        
        try note.checkIsSameUserId(requestedUserId: userId)
        
        try note.save()
        

        let userId = try req.userId()
        try note.update(for: req)
        
        try note.checkIsSameUserId(requesterUserId: userId)
        
        try note.save()
        
