Commit e5934f6c by lixinming

3.0bug

parent f56d6ed5
...@@ -44,7 +44,7 @@ export async function deleteEnterpriseInitialTeamMember(id:string) { ...@@ -44,7 +44,7 @@ export async function deleteEnterpriseInitialTeamMember(id:string) {
} }
export async function addMoneyEnterpriseInitialTeam(teams) { export async function addMoneyEnterpriseInitialTeam(teams) {
await initialTeamModel.create(teams); await initialTeamModel.insertMany(teams);
} }
export async function updateMoneyEnterpriseInitialTeam(updateTeams) { export async function updateMoneyEnterpriseInitialTeam(updateTeams) {
...@@ -52,7 +52,7 @@ export async function updateMoneyEnterpriseInitialTeam(updateTeams) { ...@@ -52,7 +52,7 @@ export async function updateMoneyEnterpriseInitialTeam(updateTeams) {
let info = updateTeams[i]; let info = updateTeams[i];
let id = info.id; let id = info.id;
delete info.id; delete info.id;
await initialTeamModel.updateOnd({id}, info ); await initialTeamModel.updateOne({id}, info );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment