mirror of
https://github.com/sim1222/misskey.git
synced 2025-07-06 19:00:05 +09:00
refactor(server): use insert instead of save
This commit is contained in:
@ -46,13 +46,13 @@ export async function importUserLists(job: Bull.Job<DbUserImportJobData>, done:
|
||||
});
|
||||
|
||||
if (list == null) {
|
||||
list = await UserLists.save({
|
||||
list = await UserLists.insert({
|
||||
id: genId(),
|
||||
createdAt: new Date(),
|
||||
userId: user.id,
|
||||
name: listName,
|
||||
userIds: [],
|
||||
});
|
||||
}).then(x => UserLists.findOneOrFail(x.identifiers[0]));
|
||||
}
|
||||
|
||||
let target = isSelfHost(host!) ? await Users.findOne({
|
||||
|
Reference in New Issue
Block a user