Skip to content

Commit cb51e3a

Browse files
author
meow12
authored
fix(database): database pass to api (#108)
database pass to api
1 parent 79982dc commit cb51e3a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/db.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export async function deleteRecord({
183183
headers: {
184184
'X-CM-ProjectId': Config.projectId,
185185
'X-CM-Cluster': cluster,
186-
'X-CM-Database': database,
186+
'X-CM-Database': database,
187187
Authorization: `Bearer ${secretKey || Config.secretKey}`,
188188
Accept: 'application/json',
189189
'Content-Type': 'application/json',
@@ -220,7 +220,7 @@ export async function deleteRecordWithFilter({
220220
headers: {
221221
'X-CM-ProjectId': Config.projectId,
222222
'X-CM-Cluster': cluster,
223-
'X-CM-Database': database,
223+
'X-CM-Database': database,
224224
Authorization: `Bearer ${secretKey || Config.secretKey}`,
225225
Accept: 'application/json',
226226
'Content-Type': 'application/json',
@@ -255,7 +255,7 @@ export async function deleteManyRecords({
255255
headers: {
256256
'X-CM-ProjectId': Config.projectId,
257257
'X-CM-Cluster': cluster,
258-
'X-CM-Database': database,
258+
'X-CM-Database': database,
259259
Authorization: `Bearer ${secretKey || Config.secretKey}`,
260260
Accept: 'application/json',
261261
'Content-Type': 'application/json',
@@ -572,7 +572,7 @@ export async function executeAggregate({
572572
headers: {
573573
'X-CM-ProjectId': Config.projectId,
574574
'X-CM-Cluster': cluster,
575-
'X-CM-Database': database,
575+
'X-CM-Database': database,
576576
Authorization: `Bearer ${secretKey || Config.secretKey}`,
577577
Accept: 'application/json',
578578
'Content-Type': 'application/json',

0 commit comments

Comments
 (0)