mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 02:16:40 +00:00
refactor(gui): linting
Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
@@ -1,26 +1,23 @@
|
||||
export default class GrpcApi {
|
||||
|
||||
constructor(table, ctx) {
|
||||
this.table = table;
|
||||
this.ctx = ctx;
|
||||
constructor (table, ctx) {
|
||||
this.table = table
|
||||
this.ctx = ctx
|
||||
}
|
||||
|
||||
// todo: - get version letter and use table alias
|
||||
|
||||
async paginatedList(params) {
|
||||
|
||||
async paginatedList (params) {
|
||||
const result = await this.ctx.$store.dispatch('sqlMgr/ActSqlOp', [{
|
||||
env: this.ctx.nodes.env,
|
||||
dbAlias: this.ctx.nodes.dbAlias
|
||||
}, 'list', {
|
||||
tn: this.table,
|
||||
size: params.limit,
|
||||
page: ((params.offset || 0) / (params.limit || 20)) + 1,
|
||||
page: ((params.offset || 0) / (params.limit || 20)) + 1
|
||||
// orderBy:
|
||||
}])
|
||||
return result.data;
|
||||
return result.data
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||||
|
||||
Reference in New Issue
Block a user