This commit is contained in:
syuilo
2020-02-01 07:16:52 +09:00
parent d355f3f77c
commit 7ed3448e13
19 changed files with 152 additions and 216 deletions

View File

@@ -54,7 +54,7 @@ export default define(meta, async (ps, me) => {
const profile = await UserProfiles.findOne(user.id).then(ensure);
if (profile.room.furnitures == null) {
await UserProfiles.update({ userId: user.id }, {
await UserProfiles.update(user.id, {
room: {
furnitures: [],
...profile.room
@@ -66,7 +66,7 @@ export default define(meta, async (ps, me) => {
if (profile.room.roomType == null) {
const initialType = 'default';
await UserProfiles.update({ userId: user.id }, {
await UserProfiles.update(user.id, {
room: {
roomType: initialType as any,
...profile.room
@@ -78,7 +78,7 @@ export default define(meta, async (ps, me) => {
if (profile.room.carpetColor == null) {
const initialColor = '#85CAF0';
await UserProfiles.update({ userId: user.id }, {
await UserProfiles.update(user.id, {
room: {
carpetColor: initialColor as any,
...profile.room

View File

@@ -32,7 +32,7 @@ export const meta = {
};
export default define(meta, async (ps, user) => {
await UserProfiles.update({ userId: user.id }, {
await UserProfiles.update(user.id, {
room: ps.room as any
});