(category, name, handler, applicationId)
| 122 | } |
| 123 | |
| 124 | function add(category, name, handler, applicationId) { |
| 125 | const lastComponent = name.split('.').splice(-1); |
| 126 | const store = getStore(category, name, applicationId); |
| 127 | if (store[lastComponent]) { |
| 128 | logger.warn( |
| 129 | `Warning: Duplicate cloud functions exist for ${lastComponent}. Only the last one will be used and the others will be ignored.` |
| 130 | ); |
| 131 | } |
| 132 | store[lastComponent] = handler; |
| 133 | } |
| 134 | |
| 135 | function remove(category, name, applicationId) { |
| 136 | const lastComponent = name.split('.').splice(-1); |
no test coverage detected