Skip to content

Commit

Permalink
fix: remove async
Browse files Browse the repository at this point in the history
  • Loading branch information
MXPOL committed Nov 29, 2023
1 parent 464f507 commit 15d45f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/velo-external-db-core/src/service/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default class SchemaService {
throw new errors.UnsupportedSchemaOperation(`Your database doesn't support ${operationName} operation`, collectionName, operationName)
}

private async validateFields(fields: collectionSpi.Field[]) {
private validateFields(fields: collectionSpi.Field[]) {
const fieldsName = fields.map(field => field.key)
if (!fieldsName.includes(PrimaryKeyFieldName)) {
throw new errors.InvalidRequest(`${PrimaryKeyFieldName} field is missing`)
Expand Down

0 comments on commit 15d45f1

Please sign in to comment.