Fix Prettier (#7066)

This commit is contained in:
Diamond Lewis
2020-12-13 11:19:04 -06:00
committed by GitHub
parent d4948572a8
commit 033a0bd443
64 changed files with 697 additions and 1887 deletions

View File

@@ -5,40 +5,17 @@ const createObject = async (className, fields, config, auth, info) => {
fields = {};
}
return (
await rest.create(
config,
auth,
className,
fields,
info.clientSDK,
info.context
)
).response;
return (await rest.create(config, auth, className, fields, info.clientSDK, info.context))
.response;
};
const updateObject = async (
className,
objectId,
fields,
config,
auth,
info
) => {
const updateObject = async (className, objectId, fields, config, auth, info) => {
if (!fields) {
fields = {};
}
return (
await rest.update(
config,
auth,
className,
{ objectId },
fields,
info.clientSDK,
info.context
)
await rest.update(config, auth, className, { objectId }, fields, info.clientSDK, info.context)
).response;
};