VirtusLab-Open-Source / strapi-plugin-comments

A plugin for Strapi Headless CMS that provides end to end comments feature with their moderation panel, bad words filtering, abuse reporting and more.
MIT License
409 stars 64 forks source link

fix: wrapped where param in db query #152

Closed ltsNotMike closed 2 years ago

ltsNotMike commented 2 years ago

Ticket

NA

Summary

Fixed all query params by wrapping them in objects. Fixed minor spelling error. Improved type of params in CommonService.FindOne()

Test Plan

codecov-commenter commented 2 years ago

Codecov Report

Merging #152 (31ca2a8) into master (0bb17db) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #152   +/-   ##
=======================================
  Coverage   80.79%   80.79%           
=======================================
  Files           9        9           
  Lines         552      552           
  Branches      211      211           
=======================================
  Hits          446      446           
  Misses        104      104           
  Partials        2        2           
Flag Coverage Δ
unittest 80.79% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
server/services/client.ts 86.01% <ø> (ø)
server/services/common.ts 79.65% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us.