Skip to content

Commit

Permalink
fix: 去除 function_logs.requestId 的唯一索引;
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Jun 8, 2021
1 parent 502d6f1 commit 68ce1e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function main() {

// 创建云函数索引
await accessor.db.collection('functions').createIndex('name', { unique: true })
await accessor.db.collection('function_logs').createIndex('requestId', { unique: true })
await accessor.db.collection('function_logs').createIndex('requestId')
await accessor.db.collection('function_logs').createIndex('func_id')

accessor.close()
Expand Down

0 comments on commit 68ce1e8

Please sign in to comment.