schema-name-adapter.js 310 字节
Newer Older
study夏羽's avatar
study夏羽 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
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) {}
}