parse-community / parse-server
Showing 1 of 1 files from the diff.

@@ -165,7 +165,11 @@
Loading
165 165
  if (!applicationId) {
166 166
    throw 'Missing ApplicationID';
167 167
  }
168 -
  return get(Category.Triggers, `${triggerType}.${className}`, applicationId);
168 +
  const trigger = get(Category.Triggers, `${triggerType}.${className}`, applicationId);
169 +
  if (trigger) {
170 +
    return trigger;
171 +
  }
172 +
  return get(Category.Triggers, `${triggerType}.*`, applicationId);
169 173
}
170 174
171 175
export async function runTrigger(trigger, name, request, auth) {
Files Coverage
src 93.92%
Project Totals (181 files) 93.92%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading