Update src/structures/role.ts

Co-authored-by: Ayyan <ayyantee@gmail.com>
This commit is contained in:
Skillz4Killz
2020-12-19 12:20:19 -05:00
committed by GitHub
co-authored by Ayyan
parent d7856f17d3
commit e7ce52bab4
+1 -1
View File
@@ -69,7 +69,7 @@ const baseRole: Partial<Role> = {
export async function createRole(data: RoleData) {
const { tags, ...rest } = data;
const restProps = {};
const restProps: Record<keyof RoleData, any> = {};
for (const key of Object.keys(rest)) {
// @ts-ignore
restProps[key] = createNewProp(rest[key]);