You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
310 B
16 lines
310 B
1 year ago
|
const db = uniCloud.database()
|
||
|
|
||
|
module.exports = async function () {
|
||
|
try {
|
||
|
const count = await db.collection('batch-sms-template').count()
|
||
|
|
||
|
if (count.total > 0) {
|
||
|
this.tableNames = {
|
||
|
template: 'batch-sms-template',
|
||
|
task: 'batch-sms-task',
|
||
|
log: 'batch-sms-result'
|
||
|
}
|
||
|
}
|
||
|
} catch (e) {}
|
||
|
}
|