mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 15:09:34 +00:00
js: Normalize strings to double quotes.
Prettier would do this anyway, but it’s separated out for a more reviewable diff. Generated by ESLint. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
06691e1e45
commit
f3726db89a
@@ -1,23 +1,23 @@
|
||||
const bots = new Map();
|
||||
|
||||
const bot_fields = [
|
||||
'api_key',
|
||||
'avatar_url',
|
||||
'bot_type',
|
||||
'default_all_public_streams',
|
||||
'default_events_register_stream',
|
||||
'default_sending_stream',
|
||||
'email',
|
||||
'full_name',
|
||||
'is_active',
|
||||
'owner', // TODO: eliminate
|
||||
'owner_id',
|
||||
'user_id',
|
||||
"api_key",
|
||||
"avatar_url",
|
||||
"bot_type",
|
||||
"default_all_public_streams",
|
||||
"default_events_register_stream",
|
||||
"default_sending_stream",
|
||||
"email",
|
||||
"full_name",
|
||||
"is_active",
|
||||
"owner", // TODO: eliminate
|
||||
"owner_id",
|
||||
"user_id",
|
||||
];
|
||||
|
||||
const services = new Map();
|
||||
const services_fields = ['base_url', 'interface',
|
||||
'config_data', 'service_name', 'token'];
|
||||
const services_fields = ["base_url", "interface",
|
||||
"config_data", "service_name", "token"];
|
||||
|
||||
const send_change_event = _.debounce(() => {
|
||||
settings_bots.render_bots();
|
||||
@@ -53,7 +53,7 @@ exports.update = function (bot_id, bot_update) {
|
||||
|
||||
// We currently only support one service per bot.
|
||||
const service = services.get(bot_id)[0];
|
||||
if (typeof bot_update.services !== 'undefined' && bot_update.services.length > 0) {
|
||||
if (typeof bot_update.services !== "undefined" && bot_update.services.length > 0) {
|
||||
Object.assign(service, _.pick(bot_update.services[0], services_fields));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user