mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 13:03:39 +08:00
DEV: lint the files
This commit is contained in:
parent
45285f1477
commit
ac3dab93f5
|
@ -92,10 +92,12 @@ class Admin::WebHooksController < Admin::AdminController
|
|||
|
||||
now = Time.zone.now
|
||||
response = conn.post(headers: MultiJson.load(web_hook_event.headers), body: web_hook_event.payload)
|
||||
web_hook_event.update!(status: response.status,
|
||||
response_headers: MultiJson.dump(response.headers),
|
||||
response_body: response.body,
|
||||
duration: ((Time.zone.now - now) * 1000).to_i)
|
||||
web_hook_event.update!(
|
||||
status: response.status,
|
||||
response_headers: MultiJson.dump(response.headers),
|
||||
response_body: response.body,
|
||||
duration: ((Time.zone.now - now) * 1000).to_i
|
||||
)
|
||||
render_serialized(web_hook_event, AdminWebHookEventSerializer, root: 'web_hook_event')
|
||||
else
|
||||
render json: failed_json
|
||||
|
|
|
@ -75,13 +75,15 @@ describe UserAnonymizer do
|
|||
user.update(name: "Bibi", date_of_birth: 19.years.ago, title: "Super Star")
|
||||
|
||||
profile = user.reload.user_profile
|
||||
profile.update(location: "Moose Jaw",
|
||||
website: "www.bim.com",
|
||||
bio_raw: "I'm Bibi from Moosejaw. I sing and dance.",
|
||||
bio_cooked: "I'm Bibi from Moosejaw. I sing and dance.",
|
||||
profile_background: "http://example.com/bg.jpg",
|
||||
bio_cooked_version: 2,
|
||||
card_background: "http://example.com/cb.jpg")
|
||||
profile.update(
|
||||
location: "Moose Jaw",
|
||||
website: "www.bim.com",
|
||||
bio_raw: "I'm Bibi from Moosejaw. I sing and dance.",
|
||||
bio_cooked: "I'm Bibi from Moosejaw. I sing and dance.",
|
||||
profile_background: "http://example.com/bg.jpg",
|
||||
bio_cooked_version: 2,
|
||||
card_background: "http://example.com/cb.jpg"
|
||||
)
|
||||
|
||||
prev_username = user.username
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user