commit | 4ffc7210e700dff720aeef7c78e92aa76edfec13 | [log] [tgz] |
---|---|---|
author | Samuel Shuert <samuel.shuert@gmail.com> | Sat Mar 04 14:20:44 2023 -0500 |
committer | GitHub <noreply@github.com> | Sat Mar 04 14:20:44 2023 -0500 |
tree | 90c70b6f3528f689a150be3bc0e8b6414c59835e | |
parent | 3e92dceacb5e6af4095bdba504320987f56d4c5e [diff] | |
parent | 9f4cf9f444b5cc816e5192ee5e729296117220c0 [diff] |
Merge pull request #16 from ClicksMinutePer/development Development
diff --git a/src/utils/database.ts b/src/utils/database.ts index 49ed6f0..d000340 100644 --- a/src/utils/database.ts +++ b/src/utils/database.ts
@@ -30,7 +30,7 @@ async read(guild: string): Promise<GuildConfig> { // console.log("Guild read") const entry = await this.guilds.findOne({ id: guild }); - const data = _.clone(this.defaultData!); + const data = _.cloneDeep(this.defaultData); return _.merge(data, entry ?? {}); }