mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 11:06:40 +02:00
test: added test cases for .addReport and .rescindReport()
This commit is contained in:
@@ -545,6 +545,7 @@ Flags.getReports = async function (flagId) {
|
||||
return reports;
|
||||
};
|
||||
|
||||
// Not meant to be called directly, call Flags.create() instead.
|
||||
Flags.addReport = async function (flagId, type, id, uid, reason, timestamp) {
|
||||
await db.sortedSetAddBulk([
|
||||
[`flags:byReporter:${uid}`, timestamp, flagId],
|
||||
|
||||
Reference in New Issue
Block a user