mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Make agrument checking more robust
This commit is contained in:
@@ -11,8 +11,8 @@ V1SubscriptionManager = require("./V1SubscriptionManager")
|
||||
oneMonthInSeconds = 60 * 60 * 24 * 30
|
||||
|
||||
module.exports = FeaturesUpdater =
|
||||
refreshFeatures: (user_id, notifyV1, callback)->
|
||||
if !callback?
|
||||
refreshFeatures: (user_id, notifyV1 = true, callback = () ->)->
|
||||
if typeof notifyV1 == 'function'
|
||||
callback = notifyV1
|
||||
notifyV1 = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user