commit | 9f4cf9f444b5cc816e5192ee5e729296117220c0 | [log] [tgz] |
---|---|---|
author | TheCodedProf <samuel.shuert@gmail.com> | Sat Mar 04 14:18:19 2023 -0500 |
committer | TheCodedProf <samuel.shuert@gmail.com> | Sat Mar 04 14:18:19 2023 -0500 |
tree | 90c70b6f3528f689a150be3bc0e8b6414c59835e | |
parent | e7241a9a41c8b9fc4c2c8e0b8577081c0cba613b [diff] [blame] |
nice commit
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 ?? {}); }