Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 31ff7e3

Browse files
Prefix table names in dynamodb
1 parent 5619585 commit 31ff7e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fs.readdirSync(__dirname).forEach((file) => {
3131
if (file !== 'index.js') {
3232
const filename = file.split('.')[0]
3333
const schema = require(path.join(__dirname, filename))
34-
const model = dynamoose.model(filename, schema)
34+
const model = dynamoose.model(`leaderboard_${filename}`, schema)
3535
models[filename] = model
3636
}
3737
})

0 commit comments

Comments
 (0)