mirror of
https://github.com/wassname/talk.git
synced 2026-07-24 13:20:47 +08:00
[next] Bugfixes (#2272)
* feat: suspending, banning, now propogation * feat: new mutation api with hooks support * [CORL-343] Center Spinner in Stream * [CORL-344] Fix moderation card styling * [CORL-338] Fix permalink reply bug * [CORL-337] Fix community guidelines box width * [CORL-341] Toggle reply form view when clicking on reply * test: add tests * [CORL-333] Fix bug: removing message box icon; [CORL-336] Fix bug: allow resetting custom css
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { isNull, omitBy } from "lodash";
|
||||
import { Db, MongoError } from "mongodb";
|
||||
import uuid from "uuid";
|
||||
|
||||
@@ -337,7 +336,7 @@ export async function updateStorySettings(
|
||||
// Only update fields that have been updated.
|
||||
const update = {
|
||||
$set: {
|
||||
...omitBy(dotize({ settings: input }, { embedArrays: true }), isNull),
|
||||
...dotize({ settings: input }, { embedArrays: true }),
|
||||
// Always update the updated at time.
|
||||
updatedAt: now,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user