Skip to content

Commit

Permalink
Fix lint gristlabs#601
Browse files Browse the repository at this point in the history
  • Loading branch information
fflorent authored and Florent F committed Aug 2, 2023
1 parent 2926011 commit fd0f0bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/server/lib/DocApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ export class DocWorkerApi {
for (const col of body.columns) {
const id = columnsTable.findMatchingRowId({parentId: tableRef, colId: col.id});
if (id) {
updateActions.push( ['UpdateRecord', '_grist_Tables_column', id, col.fields || {}] )
updateActions.push( ['UpdateRecord', '_grist_Tables_column', id, col.fields || {}] );
} else {
addActions.push( ['AddVisibleColumn', tableId, col.id, col.fields || {}] );
}
Expand Down
6 changes: 3 additions & 3 deletions test/server/lib/DocApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ function testDocApi() {
const wid = (await userApi.getOrgWorkspaces('current')).find((w) => w.name === 'Private')!.id;
const docId = await userApi.newDoc({name: 'ColumnsPut'}, wid);
const url = `${serverUrl}/api/docs/${docId}/tables/Table1/columns`;
return { url, docId }
return { url, docId };
}

async function getColumnFieldsMapById(url: string) {
Expand All @@ -858,7 +858,7 @@ function testDocApi() {
result.data.columns.map(
({id, fields}: {id: string, fields: object}) => [id, fields]
)
)
);
}

const COLUMN_TO_ADD = {
Expand Down Expand Up @@ -988,7 +988,7 @@ function testDocApi() {
addedColFields,
`Expecting to have added the column with id "${COLUMN_TO_ADD.id}"`
);
assert.deepInclude(addedColFields, COLUMN_TO_ADD.fields, "Expecting to have the fields set for the added column")
assert.deepInclude(addedColFields, COLUMN_TO_ADD.fields, "Expecting to have the fields set for the added column");
});

it('should forbid update by viewers', async function () {
Expand Down

0 comments on commit fd0f0bf

Please sign in to comment.