You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO LOW:INVESTIGATE when we throw an error we have a problem where multiple different classes extend one base class, this will be executed by multiple times
// check if modelClazz is really an @Model() decorated class
40
37
constmetadata=metadataForClass(modelClazz)
41
-
if(!metadata.modelOptions){thrownewError('given ModelConstructor has no @Model decorator')}
38
+
if(!metadata.modelOptions){
39
+
thrownewError('given ModelConstructor has no @Model decorator')
40
+
}
42
41
43
42
// check if table was already used in this request
44
43
consttableName=getTableName(metadata)
45
-
if(this.tables.has(tableName)){thrownewError('table name already exists, please provide all the keys for the same table at once')}
44
+
if(this.tables.has(tableName)){
45
+
thrownewError('table name already exists, please provide all the keys for the same table at once')
46
+
}
46
47
this.tables.set(tableName,modelClazz)
47
48
48
49
// check if keys to add do not exceed max count
49
-
if(this.itemCounter+keys.length>BATCH_GET_MAX_REQUEST_ITEM_COUNT){thrownewError(`you can request at max ${BATCH_GET_MAX_REQUEST_ITEM_COUNT} items per request`)}
0 commit comments